J
JoeA2006
I am trying to import spreadsheet data into an Access table, when I use the
following code I get a table named LocationInventory with a header row and
no data. If I use the default spreadshseet type parameter, I get an error
"External Table not in expected format.
Private Sub cmdImportData_Click()
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel5, _
"LocationInventory", "P:\Common\Store Inventories\InvReportImport.xls",
True, "A1:K1"
End Sub
Of course if I use the import wizard it imports correctly.
What is going on?
following code I get a table named LocationInventory with a header row and
no data. If I use the default spreadshseet type parameter, I get an error
"External Table not in expected format.
Private Sub cmdImportData_Click()
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel5, _
"LocationInventory", "P:\Common\Store Inventories\InvReportImport.xls",
True, "A1:K1"
End Sub
Of course if I use the import wizard it imports correctly.
What is going on?