Import an Excel file

  • Thread starter Thread starter Jone
  • Start date Start date
J

Jone

Hi everyone

I have a Microsoft Excel 2007 file and I have three columns (1=Code 2=First
3=Last) that I want to import to my table called Names where I have the
same fields like the Excel file in my Access 2007 database, what code do I
write to import this Excel file?
 
Jone,
use transfer spreadsheet.
DoCmd.TransferSpreadsheet

Look up vba help for transfer spreadsheet to see how to set up the arguments
and tell it what to import.


Jeanette Cunningham -- Melbourne Victoria Australia
 

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