Importing xls into existing table

J

John G

I want to import an excel spreadsheet into an existing
table but the import wizard won't let me do this (the
existing table option is greyed out). How do I change
this setting if at all possible??
thanks in advance,
john g
 
J

Joe Fallon

Use TransferSpreadsheet in code:

DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel8,
strTableName,
strLocalDir & strLocalFileName, True
 

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

Top