Hello, I'm getting an error with a Docmd.Transfers preadsheet line of
code:
DoCmd.TransferS preadsheet acExport, acSpreadsheetTy peExcel2000,
"tblTest", pathAndFilename , True
The above line works perfectly fine, but when I change the table name
argument (tblTest) to the name of a query, it fails and gives the
following error:
Runtime error 3275
Unexpected error from external database driver (22).
The help file with Access 2000 states that it is possible to use a
query instead of a table name, but a sql statement cannot be used - it
must first be saved in a query. I'm not using an sql statement, but
rather a saved query, and I still get the error. According to the
help file this should be working:
DoCmd.TransferS preadsheet acExport, acSpreadsheetTy peExcel2000,
"qryTest", pathAndFilename , True
Anybody have any ideas? Thanks in advance.
code:
DoCmd.TransferS preadsheet acExport, acSpreadsheetTy peExcel2000,
"tblTest", pathAndFilename , True
The above line works perfectly fine, but when I change the table name
argument (tblTest) to the name of a query, it fails and gives the
following error:
Runtime error 3275
Unexpected error from external database driver (22).
The help file with Access 2000 states that it is possible to use a
query instead of a table name, but a sql statement cannot be used - it
must first be saved in a query. I'm not using an sql statement, but
rather a saved query, and I still get the error. According to the
help file this should be working:
DoCmd.TransferS preadsheet acExport, acSpreadsheetTy peExcel2000,
"qryTest", pathAndFilename , True
Anybody have any ideas? Thanks in advance.
Comment