ACC2000: "Field 'F1' Doesn't Exist in Destination Table" Error MessageID: Q208582
|
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 an error message similar to the following:
Run-time error '2391':
Field 'F1' doesn't exist in destination table '<table name>'.
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
In Visual Basic for Applications:
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, click Microsoft Access Help on the
Help menu, type "TransferText" in the Office Assistant or the Answer Wizard,
and then click Search to view the topics returned.
Additional query words: prb
Keywords : kberrmsg kbdta IsmTxtd
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: May 13, 1999