MSQuery: dBASE Files and Field Limits

Last reviewed: December 17, 1996
Article ID: Q110601
The information in this article applies to:
  • Microsoft Query for Windows, version 1.0
  • Microsoft Query for Windows 95, version 2.0
  • Microsoft Query 97 for Windows

SYMPTOMS

In Microsoft Query 97, when you create a new dBASE table using the View Table Definition dialog box, or the Save As command, and the table contains more than 199 fields, you receive the following error message:

   Field won't fit in record

In Microsoft Query 1.0 and 2.0, you receive the following error message:

   Failed to add Column: <Column_name>

CAUSE

dBASE 4 files have a 255-field limit; You can use any dBASE 4 file that contains 255 fields in Microsoft Query. However, you cannot create a dBASE file with more than 199 fields in Microsoft Query.

Note that the field limit is different for each different data source.

WORKAROUND

To create a dBASE table that contains more than 199 fields, create the file in another program that supports the dBASE file format. You can then use the file to create queries in Microsoft Query.

MORE INFORMATION

You can create a new table in Microsoft Query from a query or an existing table. You receive the error message above if you use the View Table Definition dialog box to create the table and you add more than 199 fields to the table, or you add fields to the existing table so that it contains more than 199 fields. If you use the View Table Definition dialog box to create a new table and the new table contains more than 256 fields, you receive the following error message when you click Create:

   Too many columns in create statement.

Note that you do not receive an error message when you use the Add button to add more than 256 fields to a table in the View Table Definition dialog box. The error message does not appear until you attempt to create the table.


KBCategory: kbusage kbtool kb3rdparty kberrmsg
KBSubcategory: xlquery
Additional Reference Words: 1.00 2.00 5.00 5.00c 7.00 8.00 97 err msg


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: December 17, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.