Queries that are changed to ANSI-92 syntax still appear in a database that is opened in Access 2000 (274385)
The information in this article applies to:
This article was previously published under Q274385 Moderate: Requires basic macro, coding, and interoperability skills.
This article applies only to a Microsoft Access database (.mdb).
SYMPTOMS
After you add ANSI-92 syntax to a query in a database that is also in ANSI-92 mode, the query still appears when you open the database in Access 2000. The query may or may not run correctly.
CAUSE
When you switch a database to ANSI-92 mode, any queries that you create from that point on are flagged as ANSI-92 queries the first time that they are saved. These queries do not appear in the Database window when you open the database in Access 2000.
However, if you switch a database that contains existing queries to ANSI-92 mode, and then change one of the existing queries to contain ANSI-92 syntax, that query is not flagged as an ANSI-92 query. When you open the database in Access 2000, the changed query still appears in the Database window. Additionally, because Access 2000 is not ANSI-92 compliant, the query may not work as expected.
RESOLUTION
To prevent existing queries that you have changed to ANSI-92 syntax from appearing in the Access 2000 user interface, follow these steps in Access 2000:
- Enable the SQL Server Compatible Syntax (ANSI 92) query mode.
-
Open the existing query in SQL View.
-
Make the ANSI-92 changes to the SQL statement.
-
Select and copy the entire SQL statement.
-
Close the query.
-
Create a new query in SQL View, and then paste the SQL statement into the SQL Text Editor.
-
Save the query with a temporary name, and then run it to verify that it works correctly.
-
Delete the old query, and then rename the new one with the appropriate name.
The new query is flagged as ANSI-92 and does not appear in the Database window when you open the database in Access 2000.
REFERENCESFor more information about ANSI-92 query mode, click Microsoft Access Help on the Help menu, type about ansi sql query mode in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
Modification Type: | Major | Last Reviewed: | 11/24/2004 |
---|
Keywords: | kbnofix kbprb KB274385 |
---|
|