Hello everyone,
I'm experiencing an issue where some of my SQL queries, which I regularly used with standard tables, have suddenly stopped working overnight.
After conducting several tests, I suspect there might be a problem with Access itself. This error is occurring on different computers, which leads me to believe it could be a bug resulting from a recent update.
To better illustrate the problem, I've recorded a video demonstrating the issue. You can view it here:
https://youtu.be/0ejAL9qP9eY
Here are the steps I took that lead to the error:
- I created a query in Design View.
- I ran the query, and it worked perfectly.
- Then, I switched to SQL View. I clicked inside the SQL editor window and executed the query from the SQL View interface. (At this stage, before adding the field with a long name, it was still working correctly).
- Next, I went back to Design View and added a new field (which had a long name) to the query.
- I first tried running the query directly from Design View again.
- Then, I switched back to SQL View, clicked in the editor, and attempted to execute it. This time, when trying to run it from SQL View, I received the following error:
Invalid SQL Statement; expected 'DELETE','INSERT','PROCEDURE','SELECT' or 'UPDATE'
The main difference in the setup that resulted in the error was the length of the newly added field name. Based on my tests, this error only seems to occur when field names are long.
Could anyone offer any insights or help with this issue? Has anyone else experienced something similar, or are there any known workarounds?
Thanks in advance for your assistance!
My version: 2505 (build 18827.20128)