Hi,
There is a bug in Ms Access when importing the text files into a table.
I have a pipe delimiter text file separated into 3 columns and the file has 26 records in it. The first 25 records in the text file have blank field in the third column (or field) and make sure the 26th record has a value in third column. Copy the text below
in a text file to reproduce the error.
NoError|24137|
NoError|24137|
NoError|24137|
NoError|24137|
NoError|24137|
NoError|24137|
NoError|24137|
NoError|24137|
NoError|24137|
NoError|24137|
NoError|24137|
NoError|24137|
NoError|24137|
NoError|24137|
NoError|24137|
NoError|24137|
NoError|24137|
NoError|24137|
NoError|24137|
NoError|24137|
NoError|24137|
NoError|24137|
NoError|24137|
NoError|24137|
NoError|24137|
ErrorField|577|015RECORD
Note: ErrorField is the 26th record in the file which has the value populated in 3rd column as ' 015RECORD'.
- Right click on any table from 'All Access Object' and select Import > Text File.
- Select the text file and click OK
- Select 'Delimited' option and click 'Next'
- Select 'Other' and enter the pipe '|' symbol (The first 25 records are displayed in the box and you can see only two columns are available in the box)
- Click Next
- Click Finish
Open the imported table and note that the value '015RECORD' from the 26th record is not displayed in the table. It is because the file is imported with only 2 columns eliminating the 3rd one, as there are no values present in the 3rd column
for first 25 records.
The issue is not specific to pipe delimiter. We are facing a lot of problems due to this issue. The only workaround here is to cut and copy the 26th record to the first line. This resolves the issue. But this is just a temperory workaround.
Regards
Basha