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

Open Excel file for import into Access database

Status
Not open for further replies.

ef61778

IS-IT--Management
Sep 23, 2003
14
US
How do I open a specific excel file for data import into an access database
 
From within Access you can use DoCmd.TransferSpreadsheet Method:
Code:
MyFilename = "C:\Filename.xls"
MyTablename = "ImportTable"
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel5, MyTablename, MyFilename, True
Search TransferSpreadsheet in Access for parameters, etc.

Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top