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,120 Reputation points Volunteer Moderator
    2025-04-10T12:42:11+00:00

    Please open the query which fails in SQL View. Copy that SQL and paste it in a response here.

    The screenshot you included appears to contain invalid SQL, but to be sure I want to see the actual SQL in full.

    Thank you.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2025-04-10T12:24:30+00:00

    This is my MS Access version. I have no access to the computers where it worked right now so I can't tell you what version they were operating on.

    I enter my SQLs like this: Create - Query Design - Data Definition and then enter the SQL sentence. I will try the Design Mode later as I haven't used it before and need to do a bit of research on it before.

    Thanks in advance

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2025-04-10T11:55:22+00:00

    Have you tried building the query using the QBE, the graphical interface.

    Was this answer helpful?

    0 comments No comments
  4. ScottGem 68,840 Reputation points Volunteer Moderator
    2025-04-10T11:52:50+00:00

    What version of Access are you running? what version is run on the computers where it worked?

    To Check the version Open Access and go to Account>About Access. This is what we need

    Image

    Also, are you entering the SQL directly? If so, what happens when you build the Query in Design mode?

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2025-04-10T11:40:36+00:00

    Thanks for your quick response. I tried your suggested variations and the outcome was the same. Also, I performed the Microsoft Office repair but no results. As I said in the original post, I could run the exact same query in a different computer in the exact copy of the file, so it would make sense that the problem lies within my computer or its software. I am not able to perform any SQL sentences/statements in MS Access on my computer because it always gives the same result: the error. Even if I make a new MS Access file, new data table and so on, it still gives me the same error notification.

    Thanks in advance

    Was this answer helpful?

    0 comments No comments