G
Guest
Hi,
I am trying to import a spreadsheet into an Access table. This is the code I
am using:
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "tblData",
Reports!rptTest![Source Data Location], Yes, "a17:f100"
However, when I try to execute this code I get the following error message:
"This table contains cells that are outside the range of cells defined in
this spreadsheet"
The problem possibly lies in the fact that the data to import starts on row
18, but I have no idea how many records will have to be imported. I just put
100 to try and test it.
Thanks in advance for your help,
Sam
I am trying to import a spreadsheet into an Access table. This is the code I
am using:
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "tblData",
Reports!rptTest![Source Data Location], Yes, "a17:f100"
However, when I try to execute this code I get the following error message:
"This table contains cells that are outside the range of cells defined in
this spreadsheet"
The problem possibly lies in the fact that the data to import starts on row
18, but I have no idea how many records will have to be imported. I just put
100 to try and test it.
Thanks in advance for your help,
Sam