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: "Invalid Argument" Error When You Export Data to a Text File


View products that this article applies to.

Symptoms

When you try to export data from a Microsoft Access 2000 database to a text file, and if the table contains a field with a data type of Number and a field size of Decimal, you may receive the following error message
Invalid argument.
followed by:
An error occurred trying to export data from table 'tablename'. The data was not exported.

↑ Back to the top


Resolution

To work around this problem when you export the data, select Save formatted in the Export Table dialog box.

-or-

Create a query and use the appropriate conversion function (for example, CDbl, CSng, CInt, and so on) on the field defined as Number with a field size of Decimal.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

↑ Back to the top


More information

Steps to Reproduce the Behavior

  1. Create a new database.
  2. Create a new table with a least one field that has a data type of Number and a field size of Decimal.
  3. Close and save the table.
  4. In the Database window, right-click the new table, and then click Export.
  5. In the Save as type list, click Text Files(*.txt;*.csv;*.tab;*.asc), and then click Save.
  6. When the Export Text Wizard appears, click Finish.
Note that you receive the error message mentioned in "Symptoms" section of this article.

↑ Back to the top


Keywords: KB263946, kbprb, kberrmsg

↑ Back to the top

Article Info
Article ID : 263946
Revision : 2
Created on : 7/16/2004
Published on : 7/16/2004
Exists online : False
Views : 267