Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Import Issue 1

Status
Not open for further replies.

ep1

Programmer
Oct 22, 2003
8
US
I have a text file that has 30K rows of data. I did search the site and I was unable to see that this issue has been discussed previously. The rows have data up to 700 bytes. When I import the file as a single memo field that has a width from 1 to 700 the beginning and end are exactly in order as in the text file however the middle is out of order. The rows are all alpha numeric but they do all start with numbers between 0 & 6. The middle jumble has subsections that appear to be in order as a subsection but not in order as they should be in relation to the whole file. Can someone please tell me what happened and if I can mitigate this?



Thank you kindly for your help,

Ep
 
Why are you importing the file as a single memo field?

Cogito eggo sum – I think, therefore I am a waffle.
 
Genomon,

I use memo because text errors out saying missing search key. I wanted Access to read it in the same order as the Text I then grab a flag(Y/N) in position 674 and return back to text form (again hopefully in the same order) with only the Y flag records which happens to be the vast majority of records. From a high level I remove some record lines which are intermingled in the file.

Any help would be appreciated.

Thank you kindly for your time,

Ep
 
I would use the File Scripting Object in VBA and bring the file in as either a TextStream or flat file, then manipulate it (parse it).

Cogito eggo sum – I think, therefore I am a waffle.
 
Thank you both Bob & Genomon,

I went with a scripting function that used TextStream to solve my issue. I was unable to find anything on Allen Browne to fix any corruption and now I will go forward from here.

Thank you again,

Ep
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top