ACC: Unable to Import Portion of Fixed-Width Text FilesLast reviewed: May 28, 1997Article ID: Q94417 |
The information in this article applies to:
SYMPTOMSNovice: Requires knowledge of the user interface on single-user computers. You cannot import any portion of a fixed-width text file.
CAUSEEach record in a fixed-width text file must be separated from the next by a carriage return or line feed, and all the records must contain the same number of characters. The text file you are trying to import does not meet these criteria.
RESOLUTIONModify the text file to ensure that all records meet these requirements:
STATUSThis behavior is by design.
MORE INFORMATIONMicrosoft Access cannot import fixed-width text records that are not delimited by a carriage return or line feed. Mainframe users may be familiar with long strings of data where the first x number of characters are the first record, the next x number of characters are the second record, and so on. In order to import these records into Microsoft Access, you must ensure that each record is on its own line with a carriage return or line feed at the end of each record. For example, consider the following string of characters:
lastnamefirstnameagelastnamefirstnameagelastnamefirstnameageYou cannot import these records into Microsoft Access without modification. If you try to import the above string as a fixed-width text file, you will either create an empty table or you will be unsuccessful and may need to repair your database. To modify the file using code, follow these steps:
lastnamefirstnameage lastnamefirstnameage lastnamefirstnameageTo import a file containing records like these, follow these steps:
In Microsoft Access 97 and 7.0
In Microsoft Access 2.0 and 1.x
REFERENCESFor more information about importing data, search the Help Index for "importing data," or ask the Microsoft Access 97 Office Assistant. |
Keywords : IsmTxtfx kb3rdparty
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |