S
Sam Hayler
I keep getting an error message telling me
"An expression you entered is the wrong data type for one of the arguments."
But it won't tell me which expression, or which argument.
However, I've isolated the problem to this line:
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, tblDataSefram,
xlsht, True, "xlsht!a17:f17"
And for reference, this is where xlsht comes from:
Set xlApp = CreateObject("Excel.Application")
Set xlWbk = xlApp.Workbooks.Open(Reports!rptTest![Source Data Location],
ReadOnly:=True)
Set xlsht = xlWbk.Worksheets("Sheet1")
Somebody help me please!!!
Thanks,
Sam
"An expression you entered is the wrong data type for one of the arguments."
But it won't tell me which expression, or which argument.
However, I've isolated the problem to this line:
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, tblDataSefram,
xlsht, True, "xlsht!a17:f17"
And for reference, this is where xlsht comes from:
Set xlApp = CreateObject("Excel.Application")
Set xlWbk = xlApp.Workbooks.Open(Reports!rptTest![Source Data Location],
ReadOnly:=True)
Set xlsht = xlWbk.Worksheets("Sheet1")
Somebody help me please!!!
Thanks,
Sam