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

tab delimited text file to access table

Status
Not open for further replies.

jambai

Programmer
Mar 21, 2007
58
US
I am trying to import tab delimited text file into a MS Access table. The below is the query I am using.

INSERT INTO table1 (PName,Age) SELECT [pname], [age] FROM [Text;DATABASE=C:\Documents and Settings\MS\My Documents;].table1.txt;"

The above query insert the records into one column like
smith 30
john 30

Let me know how to insert these records into separate column.

Thanks
 
I'm sure there is a way to do it properly and I'm sure someone will tell you how.

In the meantime, is there a way to do some sort of poor man's method and read the tab dilimited data into Excel and then read it to Access from there?

 
It would be easiest to use DoCmd.TransferText with a specification.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top