Eorris when Using Chinese characters in sql queries in ACCESS Database.

Xiaoyu Wang 0 Reputation points
2025-06-16T01:40:35.5666667+00:00

Hi, from June, the access sql will pop up error as below, when referencing any Chinese character as the screen shot. The exact same codes worked well in May.

Screenshot 2025-06-16 093215

Microsoft 365 and Office | Access | Development
{count} votes

4 answers

Sort by: Most helpful
  1. Karl Donaubauer 2,076 Reputation points MVP
    2025-06-16T09:34:27.08+00:00

    Hi,

    This is a known bug in the current builds of Access in the Current Channel. The responsible team at Microsoft is aware of the problem and a fix is expected to come. Meanwhile you can deactivate the Monaco SQL editor as a workaround.

    You can find further information and the current state of the problem in our bug documenting AFo article

    Servus
    Karl


    Access Forever News DevCon
    Access-Entwickler-Konferenz AEK

    1 person found this answer helpful.
    0 comments No comments

  2. Dora-T 3,225 Reputation points Microsoft External Staff Moderator
    2025-06-16T03:21:00.2633333+00:00

    Hi @Xiaoyu Wang

    Thank you for reaching out to the Microsoft Q&A Forum. 

    I understand how frustrating this issue can be — especially since the same SQL worked fine just last month. Based on the information and screenshot you shared, one possible cause might be how Access handles special or Unicode characters in queries, especially with Chinese text. 

    From what I can see, the quotation marks around the Chinese text might be curly quotes (“离职”) instead of straight single quotes ('离职'). This detail could sometimes cause issues in Access SQL. 

    You could try updating your query to use straight single quotes like this: 

    WHERE comments = '离职' 

    I've shared a possible solution based on my research. If it doesn't resolve the issue, please don't hesitate to reach back out – I'd be glad to help you look into next steps.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".     

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  3. Luis Angel Ñañez Llanos 431 Reputation points
    2025-06-16T13:20:21.5333333+00:00

    Hi,

    This problem happened to me also this month. It is due to a bug in the Monaco editor. I suggest disabling the Monaco editor (this is only a temporary fix until it is fixed by Microsoft team).Imagen1

    The problem occurs only when special characters such as umlauts, tilde, Chinese, among other non-ASCII characters appear in our statements.

    I posted about this problem on LinkedIn and some users very kindly shed light on the issue: https://www.linkedin.com/feed/update/urn:li:activity:7337743031120355328/


    If the answer is helpful, please click "Accept Answer" and kindly upvote it.

    This way, everyone who has the same question will know that they can find the answer here.

    0 comments No comments

  4. Karl Donaubauer 2,076 Reputation points MVP
    2025-06-17T16:46:54.5966667+00:00

    Hi,

    Today's update in the Current Channel contains a fix for this bug. For details see the Status section in the documenting AFo article.

    Servus
    Karl


    Access Forever News DevCon
    Access-Entwickler-Konferenz AEK

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.