Import Excel CSV file into Access 2007

  • Thread starter Thread starter Zephyr
  • Start date Start date
Z

Zephyr

I am using the following line of code to perform the referenced import:

DoCmd.TransferText acImportDelim, , "TempTable", strPath, False
Where TempTable is the table I wish to import to,
and strpath is a string containing the name of the CSV file from Excel.

When I run the program containing this line, nothing happens. Any
suggestions? Thanks in advance
 
Zephyr -

Does your filename include the full path to the file?

If you are in Access 2007, is your database trusted?
 
Yes. The full path is assigned to the variable "strPath"

And yes, the path is a trusted location.
 
Back
Top