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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is It Possible To Import A Portion of a Text File?

Status
Not open for further replies.

lrdave36

Technical User
Jan 6, 2010
77
0
0
US
Hi guys,


I have a text file that has the data broken up into 3 different sections. It is fixed width. I need each section to be placed in a seperate table.

Is there any way to do this in the import wizard? I could specify a line number as the cut off point.
 
I know of no way to do it with the wizard, you'd have to code it.
 
have you tried converting the data into a delimited excel file and then importing it through the wizard?
 
If each record type has the same number of fields, definitely import first and then normalize.

If not, you can go two routes....

Import each row into one column and code the break out into fields and load the tables seperately.

Alternately, you can open the text file via VBA, read the file line by line, figure out the destination filetype and write conditionally to three seperate files and then import each of those.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top