ACC: Error "Couldn't Find Object" Exporting Query to dBASE

Last reviewed: May 30, 1997
Article ID: Q150495
The information in this article applies to:
  • Microsoft Access versions 7.0, 97

SYMPTOMS

Novice: Requires knowledge of the user interface on single-user computers.

When you try to export a query in dBASE (any version) file format, you may receive the error "Couldn't find object queryname.dbf." If you try to save the underlying table to dBASE format, you receive the error "Can't define a field more than once."

CAUSE

dBASE has a 10-character limit for the size of field names. When the first 10 characters of two (or more) fields in a Microsoft Access table are identical, trying to export the table or query results in duplicate field names.

RESOLUTION

To work around this behavior, use one of the following approaches:

  1. Rename the table fields so that the first 10 characters are unique for each field.

  2. Alias the field names in a query. For example, in the query field row type: [NewField]:[OldDuplicateField]

MORE INFORMATION

Steps to Reproduce Behavior

  1. Create the following table:

          Table: Table1
          ------------------------
          Field Name: abcdefghijk
    
             Data Type : Text
          Field Name: abcdefghijkl
             Data Type : Text
    
    

  2. Create a query based on Table1 that includes both fields.

  3. On the File menu, click Save As/Export.

  4. In the Save As dialog box, click "To an External File or Database," and then click OK.

  5. Under Save As Type, select dBASE III (*.dbf), and then click Export. The error message "Couldn't find object Table1.dbf" appears.

REFERENCES

For more information about exporting to an Xbase file, type "FoxPro" in the Office Assistant, click Search, and then click to view "Export a table or query to a FoxPro, Paradox, or dBASE file".


Additional query words: dBASE duplicate names
Keywords : IsmXbase kb3rdparty
Version : 7.0 97
Platform : WINDOWS
Hardware : X86
Issue type : kbprb
Resolution Type : kbworkaround


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: May 30, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.