ACC: "Field 'F1' Doesn't Exist in Destination Table" Error MsgID: Q142186
|
Advanced: Requires expert coding, interoperability, and multiuser skills.
When you append data from a delimited text file to an existing table
by using a TransferText macro action or a TransferText method in Visual
Basic for Applications, you may receive the following error message:
Field 'F1' doesn't exist in destination table '<table>'. Microsoft Access was unable to append it.
The destination table must contain the same fields as the table you are pasting from.
The first row of the text file does not contain field names; therefore, Microsoft Access assumes the fields are named "F1," "F2," and so on.
You can create and use an import specification to identify the fields in
the delimited text file.
To create an import specification, follow these steps:
TransferText Actions
Transfer Type: Import Delimited
Specification Name: <specification name>
Table Name: <table name>
File Name: <full path>
Has Field Names: No
DoCmd.TransferText acImportDelim,<specification name>, _
<table name>, <filename path>, 0
For more information about transferring text by using a macro or Visual Basic for Applications, search on the phrase "transfertext," and then view "Automate importing, exporting, or linking of data" using the Office Assistant.
Keywords : kberrmsg kbusage IsmTxtd
Version : 7.0 97
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: April 20, 1999