Forum Discussion
Query error 3141
Yesterday I started my Microsoft 365 free trial. I created a database and made a query, when i tried to save the query i got error 3141"The SELECT statement includes a reserved word or an argument name that is misspelled or missing, or the punctuation is incorrect" but the spelling was correct. So i tried a new database and got the same error again when saving a query. This error happens with multiple different types of queries across multiple databases and when i download a database with a query already in it and copy the code from the already made query into a new query it still gives the error 3141 even though it works in an already made query. I assume this has something to do with my Microsoft Access.
this is the query i made:
SELECT *
FROM ttblTraits;
2 Replies
- George_HepworthSilver Contributor
Do you actually have a table named ttblTraits ? Spelled with 2 t's ?
Would suggest check on below:
- Reserved Words: Verify that ttblTraits is not a reserved word in Microsoft Access. If it is, enclose the name in square brackets, e.g., [ttblTraits], to ensure proper functionality.
- Table Name: Confirm that the table ttblTraits exists within your database and that its name matches the spelling and formatting exactly as defined in the database schema.
- Database Integrity: In cases of potential database corruption, utilize the "Compact and Repair Database" tool in Access to resolve any underlying issues.
- Version Compatibility: As you are using a Microsoft 365 trial, ensure that your Access installation is updated to the latest version to avoid compatibility problems that may arise in older releases.
- Query Context: When executing this query within a specific context, such as a form or VBA code, ensure that the execution environment is correctly configured to support the query.
- Syntax Validation: Although the query appears straightforward, attempt to run it directly in Access Query Design view to verify its syntax and functionality.