The information in this article applies to:
SYMPTOMSWhen you use version 2.0 of the Open Database Connectivity (ODBC) drivers with the products listed above, you may receive the following error message: This problem will occur with the drivers listed below if the first character of a table's name is a number (for example, "1TABLE"): Microsoft Btrieve DriverThese drivers are shipped with the Microsoft ODBC Desktop Database Drivers Kit. CAUSEThe error is caused by the way the SQL SELECT statement is created in Microsoft Query. To illustrate the problem, assume you are using the dBASE ODBC driver to select data from a file called 1TABLE.DBF in the C:\TEST directory. The following SELECT statement is created by Microsoft Query to retrieve the data when you add a field name to the data pane:
NOTE: This select statement will cause the same error if you use it in the
SQLExecQuery macro function in a Visual Basic for Applications macro.
WORKAROUNDTo work around this problem, do the following:
STATUSMicrosoft has confirmed this to be a problem in the ODBC Desktop Database Drivers Kit, version 2.0. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available. REFERENCESFor additional information, please see the following article(s) in the Microsoft Knowledge Base: Q124319 BUG: Syntax Error When Using Qualified Table Name with Quotes Additional query words: 2.00 Structured Query Language
Keywords : xlquery |
Last Reviewed: October 1, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |