About
Pricing
Community
Teams
Start Free Trial
Log in
SteveL13
asked on
1/2/2014
How import csv file into a table
I have this line of code which works fine for importing an Excel file into a table:
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "tblTempImport", Me.FileList, True
But if the file is a csv file how do I code the line?
--Steve
Microsoft Access
2
1
Last Comment
Rey Obrero (Capricorn1)
8/22/2022 - Mon
Steven Carnahan
1/2/2014
Something like:
DoCmd.TransferText TransferType:=acLinkDelim,
TableName:="tblImport", _
FileName:="C:\MyData.csv",
HasFieldNames:=true
ASKER CERTIFIED SOLUTION
Rey Obrero (Capricorn1)
1/2/2014
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Your help has saved me hundreds of hours of internet surfing.
fblack61
DoCmd.TransferText TransferType:=acLinkDelim,
FileName:="C:\MyData.csv",