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

include field names/delimiters in import

Status
Not open for further replies.

nickjar2

Programmer
Jun 20, 2001
778
US
I am using:

DoCmd.TransferText acImportDelim, , "tablename", "c:\something.txt", True

If I do the import manually it works fine, but if I do it as above the data comes in as one field with the little squares (tabs) seperating the fields.
I thought the above code (by default), would import the file as a Tab delimited file. I can split it using code but surely the above vba is correct and it should work ok. This is how it looks

Ref Number_QS ref_Name Field names as one field
001
234
text Indiv recs as one record

This is something I must have done a 100 times before. Where am I going wrong?

Cheers 4 any help,

Nick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top