ACC2002: Error with ANSI-92 Reserved Words When SQL Server Compatibility Syntax (ANSI 92) Is Enabled (287417)
The information in this article applies to:
This article was previously published under Q287417 Advanced: Requires expert coding, interoperability, and multiuser skills.
This article applies only to a Microsoft Access database (.mdb).
SYMPTOMS
ANSI-92 reserved words generate the following error in queries when the check boxes under SQL Server Compatibility Syntax (ANSI 92) are selected.
Reserved Error (-1001); There is no message for this error.
RESOLUTION
To avoid the error message, use one of the following workarounds. Workaround 1- View the query in Design view.
- Place brackets ([]) around the ANSI-92 reserved words.
- Save the query.
Workaround 2
When you design the tables in the database, be careful not to use ANSI-92 reserved words. If a table has a field already defined, consider changing the field name. Workaround 3
Consider disabling the SQL Server Compatibility Syntax (ANSI 92) option for the database. To disable the option:
- On the Tools menu, click Options.
- Click the Tables/Queries tab.
- Click to clear the check boxes under SQL Server Compatibility Syntax (ANSI 92).
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 9/27/2003 |
---|
Keywords: | kberrmsg kbprb KB287417 |
---|
|