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

Tab Delimited Import Macro

Status
Not open for further replies.

RandDUser

Technical User
Feb 24, 2005
65
US
I am trying to write a macro to import an .txt file that is tab delimited. The problem I run into is that on the import, it keeps all the data in the first field. Here is the code I have:

Private Sub Command0_Click()
DoCmd.TransferText acImportDelim, , "tbl_Main", "C:\text file.txt", 0
End Sub

Any suggestions?

Thanks!
 
I would suggest creating an import specification. The name of your specification would be the second parameter in your line of code.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top