Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

ACC2000: Errors Messages When You Export Query to dBASE


View products that this article applies to.

Symptoms

When you try to export a query in dBASE (any version) file format, you receive the following error message:
Couldn't find object queryname.dbf.
When you try to save the underlying table to dBASE format, you receive the following error message:
Cannot define field more than once.
When you try to export the query using the TransferDatabase method, you receive the following error message:
Run-time error '3191':
Can't define field more than once.

↑ Back to the top


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 Access table are identical, if you try to export the table or query in dBASE file format, there will be duplicate field names.

↑ Back to the top


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]

↑ Back to the top


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 Export.
  4. In the Export Table dialog box, under Save As Type, select dBASE III (*.dbf), and then click Save.

    Note that you receive the following error message:
    Couldn't find object Table1.dbf

↑ Back to the top


References

For more information about exporting to an Xbase file, click Microsoft Access Help on the Help menu, type dbase in the Office Assistant or the Answer Wizard, and then click Search to view the topics returned.

↑ Back to the top


Keywords: KB208446, kb3rdparty, kbnofix, kbbug

↑ Back to the top

Article Info
Article ID : 208446
Revision : 2
Created on : 6/24/2004
Published on : 6/24/2004
Exists online : False
Views : 274