Fields are not mapped correctly when you use the Import Text Wizard to import a comma-delimited text file (824182)
The information in this article applies to:
- Microsoft Office Access 2003
- Microsoft Access 2002
- Microsoft Access 2000
This article applies only to a Microsoft Access database (.mdb).
Moderate: Requires basic macro, coding, and interoperability skills.
SYMPTOMSWhen you import a comma delimited text file by using the
Import Text Wizard, the following behaviors occur:
- When you import a text file by using the Import
Text Wizard, a field that contains data that exceeds the range of
Long Integer is still mapped to the Long Integer.
- When you import the same file by using the
TransferText method, the field is now
correctly mapped to the Double data type. However, another field that
contains alphanumeric characters is incorrectly mapped to the
Double data type.
WORKAROUNDTo work around these behaviors, follow these steps:
- Start Access.
- Create a new database.
- On the File menu, point to Get
External Data, and then click Import.
- In the Import dialog box, click
Text Files in the Files of type section.
- Locate the Source.txt file.
- Click the text file, and then click
Import.
- In the Import Text Wizard,
click Advanced.
- In the Import Specification dialog box,
in the Field Information section, click the row selector for
the Field5 field.
- Click the Data Type column, and then in the list box, click Double.
- Click OK to close the
Import Specification dialog box.
- Click Next in the
Import Text Wizard, and then click
Finish to close the Import Text Wizard.
- Click OK in the message box.
- In the Database window, click
Tables.
- Double-click the Source table to open it.
Note that the ESN field is correctly mapped to the Double
data type, and the data is imported. STATUS Microsoft
has confirmed that this is a problem in the Microsoft products that are listed
at the beginning of this article.
REFERENCES
For more information about data import, click Microsoft Access Help on the
Help menu, type import in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
For more information about TransferText method, 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 topic.
Modification Type: | Minor | Last Reviewed: | 6/9/2004 |
---|
Keywords: | kbImport kbprb KB824182 kbAudDeveloper |
---|
|