ID: Q131920
5.00 5.00c WINDOWS kbtool xlquery
The information in this article applies to:
When you use version 2.0 of the Open Database Connectivity (ODBC) drivers with the products listed above, you may receive the following error message:
   Syntax error in FROM clause
   Microsoft Btrieve Driver
   Microsoft dBASE Driver
   Microsoft FoxPro Driver
   Microsoft Paradox Driver
   Microsoft Text Driver
The 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:
   SELECT '1test'. FIELD1 FROM c:\test\'1test.dbf' '1test'
To work around this problem, do the following:
1. Add any tables you need to the table pane.
2. From the Records menu, choose the Automatic Query option.
   This turns off Microsoft Query's ability to automatically query the
   table each time you add a field or criteria to the data or criteria
   panes.
   need to the criteria pane.
   change the SQL statement's FROM clause by replacing the backslash
   immediately before the table name with a period as shown below:
      SELECT '1test'.FIELD1 FROM c:\test.'1test.dbf' '1test'
      SQL Query can't be represented graphically. Continue anyway?
Microsoft 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.
For additional information, please see the following article(s) in the Microsoft Knowledge Base:
   ARTICLE-ID: Q124319
   TITLE     : BUG: Syntax Error When Using Qualified Table Name with
               Quotes
Additional reference words: 2.00 Structured Query Language
Keywords          : xlquery 
Version           : 5.00 5.00c
Platform          : WINDOWSLast Reviewed: September 15, 1996