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.
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.