×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Unexpected Error from External Database Driver (22)

Unexpected Error from External Database Driver (22)

Unexpected Error from External Database Driver (22)

(OP)
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

RE: Unexpected Error from External Database Driver (22)

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:

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....

RE: Unexpected Error from External Database Driver (22)

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close