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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top