ACC97: Can't Export to Text with File Name Greater Than 60 Char

Last reviewed: May 22, 1997
Article ID: Q168870
The information in this article applies to:
  • Microsoft Access 97

SYMPTOMS

Moderate: Requires basic macro, coding, and interoperability skills.

When you try to export a Microsoft Access table or query that has a file name longer than 60 characters to Text, the export fails, and you receive the following error message:

   Export Text Wizard

   The database engine can't find

   '<table or query name>'.txt

   Make sure it is a valid parameter or alias name, that it doesn't
   include invalid characters or punctuation, and that the name isn't
   too long.

If you click OK to the message, you receive the following message:

   Export Text Wizard

   An error occurred trying to export data from table

   '<table or query name>.'

   The data was not exported.

CAUSE

Microsoft Access has a limitation of 64 characters (including the dot (.) and the extension) for file names.

RESOLUTION

If you want to use a file name that is longer than the limit, first export the file as Text with a shorter name, and then rename it to the longer name.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Open the sample database Northwind.mdb.

  2. Select the Customers table in the Database window.

  3. On the Edit menu, click Copy. On the Edit menu, click Paste. In the Paste Table As box, type a table name that contains more than 60 characters, and then click OK.

  4. Select the copy of the table in the Database window. On the File menu, click Save As/Export.

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

  6. In the "Save Table '<Tablename>' In" dialog box, select Text files in the Save As Type box, and then click Export.

  7. When the Export Text Wizard opens, click Finish. Note that you receive the error message mentioned in the "Symptoms" section.

REFERENCES

For more information about the limits of file names in Microsoft Access, search the Help Index for "naming conventions," and then "Guidelines for naming fields, controls, and objects."


Keywords : IsmTxtd kbusage
Version : 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 22, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.