Microsoft KB Archive/188570

From BetaArchive Wiki
Knowledge Base


Article ID: 188570

Article Last Modified on 8/17/2005



APPLIES TO

  • Microsoft Word 95 Standard Edition
  • Microsoft Word 95a



This article was previously published under Q188570


SYMPTOMS

When you attempt to insert a Microsoft Excel worksheet into a Word document or when you attempt to attach a Microsoft Excel worksheet as a data document to a mail merge main document using the Microsoft Excel ODBC driver, you receive one of the following error messages:

  • Word was unable to open the data source.

    -or-
  • Open Database Connectivity Error: Syntax error in query. Incomplete query clause.

    When you click the Details button, you receive the following message:

    ODBC Error: [Microsoft][ODBC Excel Driver] Syntax error in query.
    Incomplete query clause.
    SQL State: S1000
    Return Code: SQL_Error


CAUSE

You did not select a worksheet from the Select Table dialog box. (To locate this dialog box, click to select the Select Method check box in the Open Data Source dialog box, select the Excel Files via ODBC (*.xls) driver in the Confirm Data Source dialog box, and then click OK.)

WORKAROUND

NOTE: Be sure that the Microsoft Excel ODBC driver is installed before you follow this procedure. If the Microsoft Excel ODBC driver is not installed, re-run Setup and install the ODBC driver.

To insert a Microsoft Excel worksheet as a database in Word, follow these steps:

  1. On the View menu, point to Toolbars, and then click Database.


The Database toolbar appears.

  1. Click the Insert Database button on the Database toolbar.
  2. Click the Get Data button.
  3. Select the Microsoft Excel workbook you want to open, click to select the Select Method check box, and then click Open.
  4. In the Confirm Data Source dialog box, under Open Data Source, select "Excel Files via ODBC (*.xls)," and then click OK.
  5. In the Select Table dialog box, click Options.
  6. In the Table Options dialog box, click to select the System Tables check box, and then click OK.
  7. In the Select Table dialog box, under Table, select the worksheet you want to insert, and then click OK.


NOTE: Each sheet name is appended with a dollar sign, such as Sheet1$, Sheet2$, and so forth.


STATUS

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

MORE INFORMATION

For additional information, please see the following articles in the Microsoft Knowledge Base:

156835 OFF97: Complete Setup Doesn't Install All ODBC Drivers


155179 WD97: How to Use Microsoft Excel Data Source for Word Mail Merge



Additional query words: 7.0 xl xcel

Keywords: kbbug kbmerge kbpending KB188570