Hi. I seem to have a problem with MS Access.

Anonymous
2025-04-10T06:56:31+00:00

The software seems to be corrupt in my computer and I can't make any query's in my computer, no matter the Access file or query type. If I try to make a query, it comes up with a response of "Invalid SQL Statement; expected 'DELETE','INSERT','PROCEDURE','SELECT' or 'UPDATE'. I have tried to run the same query on the same file in a different computer and it worked, so the problem must be in the software of my computer. I am studying SQL in school and it happened to three of our class students in the same class on the same time and date, which is quite strange. I have had no other problems with my computer and MS Access until now (two days ago).

Thanks in advance

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

20 answers

Sort by: Most helpful
  1. George Hepworth 23,135 Reputation points Volunteer Moderator
    2025-06-10T13:34:26+00:00

    Have you tried disabling the Monaco SQL Editor?

    Image

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2025-04-14T12:20:32+00:00

    Had the same issue, try hitting the red Run button, before saving the query.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2025-04-10T11:23:13+00:00

    I don't know your field data types, but I'd suspect [kurss] is numeric, so it shouldn't have single quotes around its value. So I'd try

    INSERT INTO riik
    VALUES ('UK', 'United Kingdom', 1);

    OR

    INSERT INTO [riik]
    VALUES ('UK', 'United Kingdom', 1);

    Also, although it is acceptable to use the implicit SQL syntax (above), I much prefer using the explicit format (below) in case design changes occur to the table

    INSERT INTO riik (riigikood, riiginimi, kurss)
    VALUES ('UK', 'United Kingdom', 1);

    OR

    INSERT INTO [riik] ([riigikood], [riiginimi], [kurss])
    VALUES ('UK', 'United Kingdom', 1);

    The last thing that comes to mind is the fact that you are using the new Monaco SQL Editor, there could be a bug.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  4. Anonymous
    2025-04-10T11:03:18+00:00

    ImageImage

    Image

    Hi

    In the original post I was not able to attach images, now I can.

    The first image is the query. "riik" is a table, and I have attached the second image of the table "riik". The third image is the error that pops up when I try to save the Query.

    I will look into performing an Office repair.

    Thanks in advance

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2025-04-10T09:57:25+00:00

    We'd need to see the query SQL statement.

    Also, have you tried performing an Office Repair?

    https://youtu.be/0gw_NnH-wk8?si=h6pvyoNMSgXbTMvd

    Was this answer helpful?

    0 comments No comments