MSQUERY: "Syntax in CREATE TABLE Statement" Error

Last reviewed: September 12, 1996
Article ID: Q124666
The information in this article applies to:
  • Microsoft Query for Windows, version 1.0

SYMPTOMS

In the versions of Microsoft Query listed above, you may receive the following error message when you create a new table in a Microsoft Access 2.0 database:

   Syntax in CREATE TABLE statement

CAUSE

The above error message occurs because a field in the table being added has the Required option set in the Add Table dialog box. This option specifies whether a field is required or if it can contain null values.

RESOLUTION

For any field that has the Required option set, turn it off by performing the following steps:

  1. In the Fields list, select any field that has the Required option set to Required and choose Remove.

  2. Clear the Required check box, and then choose Add.

The field should now be displayed as a Nullable field.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft Access 2.0 ODBC driver, version 1.0 for Windows. This driver is available only with Microsoft Access 2.0. This problem was corrected in the Microsoft Access 2.0 driver, version 2.0 for Windows, which is shipped as part of the Microsoft ODBC Desktop Database Drivers kit and can be obtained by calling the Microsoft Sales Information Center at (800) 426-9400. The new Microsoft Access 2.0 driver has the Required check box disabled.


KBCategory: kbinterop
KBSubcategory: xlquery

Additional reference words: 1.00



THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 12, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.