Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unexpected Error from External Database Driver (22)

Status
Not open for further replies.

Sorrells

Programmer
Dec 28, 2000
92
US
This error has occurred to two people in our company when exporting the dynaset of an Access97 query to an Excel spreadsheet. One of these people has performed the export for over a year, then a month ago she began getting this error.
All of our users have their own copy of Office97 on their workstations.
Has anyone out there experience this error and know the cause?
My thanks in advance for any help/advice offered.
Sorrells
 
I would like to bump this (very old) thread up the list, as I am getting the same error and cannot find a solution elsewhere.

I am simply trying to export the results of a select query as an excel file using the following VB code:

Code:
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel97, "rtData_for_Not_Included_Spreadsheet", "C:\Tmp\Data for Not Included Spreadsheet.xls"

The Excel file is created in the required folder, but it is empty.

Hope someone can help....
 
Well waddayaknow?! No sooner do I post, than I try something else that solves the problem!

I simply changed the filename of the export file to Spreadsheet.xls and it worked.

Not sure if it was just too long, or because of the spaces in the filename, but at least it works now.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top