Help and Support
 

powered byLive Search

"Syntax Error in FROM Clause" When Getting External Data

Article ID:171899
Last Review:January 20, 2007
Revision:2.4
This article was previously published under Q171899
On This Page

SYMPTOMS

When you use Microsoft Query or Access 97 to return external data to a worksheet in Microsoft Excel or when you view returned data in Microsoft Query, you may receive the following error message:

Back to the top

Microsoft Query

Syntax error in FROM clause.

Back to the top

Access 97

This data source contains no visible tables.

Back to the top

CAUSE

This problem occurs if the following conditions are true:
You attempt to retrieve data from a Microsoft Access database.

-and-
The path to the database or the database name itself contains a period (.), for example:
C:\My.Test\Northwind.mdb
-or-
You attempt to retrieve data from a Microsoft Excel workbook.

-and-
The table range in the workbook is called "Database".

Back to the top

WORKAROUND

To work around this problem, change the path to the database so that it does not contain any periods, for example:
C:\MyTest\Northwind.mdb C:\My Test\Northwind.mdb
NOTE: You may use a period before the file name extension (.mdb in this case).

Or, rename the table range in the workbook to a name other than "Database".

Back to the top

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

Back to the top

MORE INFORMATION

When the file name path contains a period, the path is qualified incorrectly by Microsoft Query. As a result, the Structured Query Language (SQL) statement for the data you are retrieving is incorrect, and you receive the error message in the "Symptoms" section.

Back to the top


APPLIES TO
Microsoft Excel 97 Standard Edition
Microsoft Excel 95 Standard Edition
Microsoft Access 97 Standard Edition

Back to the top

Keywords: 
kbbug kberrmsg KB171899

Back to the top

Article Translations

 

Other Support Options

  • Need More Help?
    Contact a Support professional by Email, Online or Phone.
  • Customer Service
    For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
  • Newsgroups
    Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.