P
PeteCresswell
The following line of code:
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9,
"qryWhatever", "C:\Temp\Whatever.xls"
is throwing:
Run-time error '3011': The Microsoft Jet dtabase engine could not find
the object 'qryWhatever". Make sure the object exists and that you
spell it's name and the path name correctly."
But the zinger is that qryWhatever exists and can be opened a-ok. I
copied it's name and pasted it under the line of code to compare
letter-for-letter... then I just pasted it right on top of the code's
reference.... so spelling is definately not the problem.
But what is? How come TransferSpreadsheet cannot find that query,
but my eyeballs can?
Anybody been here?
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9,
"qryWhatever", "C:\Temp\Whatever.xls"
is throwing:
Run-time error '3011': The Microsoft Jet dtabase engine could not find
the object 'qryWhatever". Make sure the object exists and that you
spell it's name and the path name correctly."
But the zinger is that qryWhatever exists and can be opened a-ok. I
copied it's name and pasted it under the line of code to compare
letter-for-letter... then I just pasted it right on top of the code's
reference.... so spelling is definately not the problem.
But what is? How come TransferSpreadsheet cannot find that query,
but my eyeballs can?
Anybody been here?