I'm trying to import an Excel spreadsheet into Access 2002. There is only one worksheet that I need. Here is my code:
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "XLS_" & MarketName, strInputFileName, True, "ACID!"
If I take out the range argument it works fine, but does not import the correct sheet. Once I add the "ACID!" into the range I get the following error: "The Search Key Was Not Found In Any Record". Anyone have any ideas on what is going on???
What doesn't kill you makes you stronger.
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "XLS_" & MarketName, strInputFileName, True, "ACID!"
If I take out the range argument it works fine, but does not import the correct sheet. Once I add the "ACID!" into the range I get the following error: "The Search Key Was Not Found In Any Record". Anyone have any ideas on what is going on???
What doesn't kill you makes you stronger.