ACC: Cannot Export Part of a Table to a Text File (145656)
The information in this article applies to:
- Microsoft Access for Windows 95 7.0
- Microsoft Access 97
This article was previously published under Q145656 Novice: Requires knowledge of the user interface on single-user computers.
SYMPTOMS
When you try to omit fields from the export specification in the Export
Text Wizard (or Text Export Wizard in Microsoft Access 7.0), you may
receive the following error message:
The number of fields in your export specification does not match the
number in the table you have chosen to export.
Or, if you convert a database (created in a previous version of Microsoft
Access) that uses a TransferText action with a fixed-width export
specification to output only part of a table, you may receive the following
error message when you run the TransferText action:
INSERT INTO statement contains unknown field name '<field name>'
CAUSE
Microsoft Access 7.0 and 97 do not allow you to customize the export
specification to omit specific fields from a table (or query). This
behavior differs from earlier versions of Microsoft Access.
RESOLUTION
You can create a query that includes only the fields that you want to
export to the fixed-width or delimited text file. Then, you can run the
Export Text Wizard to export the query and create an Import/Export
specification with only the query fields. Or, you can run a TransferText
action to export the query using the Import/Export specification created
with an earlier version of Microsoft Access.
STATUS
Microsoft has confirmed this to be a problem in Microsoft Access 7.0
and 97.
REFERENCES
For more information about exporting data using a fixed-width format, type
"TransferText" in the Office Assistant, click Search, and then click to
view "Automate importing, exporting, or linking of data."
Modification Type: | Major | Last Reviewed: | 10/31/2003 |
---|
Keywords: | kb3rdparty kbbug kberrmsg KB145656 |
---|
|