I created a macro in ms access 2002 and I'm trying to import a spreadsheet with 4 columns from excel 2002 into a table with the same columns and data types. If I use File, Import everything works fine but the macro does not work. This is my macro
TransferSpreadsheet
Transfer Type: Import
Spreadsheet Type: Microsoft Excel 5-7 (also tried Microsoft Excel 8-10)
Table Name: tblDetails
Filename: J:\BOA AP Positive Pay\BOAImp.xls
Has Field Names: Yes (also tried No)
Range: Page1-1!A:E (also tried without range)
Can anyone help with this? I read some of the other solutions but did not know where to place the code.
Thanks
Start Free Trial