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

Import Data From Excel to Access

Status
Not open for further replies.

smil3y

IS-IT--Management
Jan 8, 2004
79
AU
After searching for information on how to import data from Excel to Access I am now confused.

I am using VB6 (on XP) and have set up an ado connection to the required Excel spreadsheet. I wrote a query but could not figure out how to specify which worksheet to import from - so I started searching.

Everything I read mentions using docmd.transferspreadsheet.

I must do the transfer from the VB application - but which is easiest way to transfer the data sql query or docmd.

Is there a good reference for how to use docmd?
Also can someone tell me how to specify a worksheet within SQL query.
Many thanks.
 
could not figure out how to specify which worksheet
"SELECT * FROM [NameOfSheet$]"

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top