ltdanp22
asked on
TransferSpreadsheet Error: Unexpected error from external database driver (1309).
I have a subroutine in Excel that calls a subroutine in Access. The subroutine in Access calls the TransferSpreadsheet function which transfers an Access table to the Excel file that called the Access procedure. The code breaks at the TransferSpreadsheet function.
Here's the error I'm getting
Run-time error '3275':
Unexpected error from external database driver (1309).
MS Office Help says error 1309 indicates:
The specified external database driver returned an error. This error can be caused by performing an operation not supported on this type of external database.
MSDN says error 1309 indicates:
1309 Can't modify table structure. Another user has the table open.
I think I know what the problem is. In the Excel workbook a dialog box is open. It says that "MS Office Excel is waiting for another application to complete and OLE action. So Excel is locked up while it's waiting for the Access procedure to finish but the Access procedure can't finish until it is able to make changes to the Excel file.
Is there a simple/smart workaround for this? (Hopefully one that doesn't involve opening a an empty Excel file, transferring to that file, and then copying from that file to the Excel file I want the data in.)
Thank you for you help!
Here's the error I'm getting
Run-time error '3275':
Unexpected error from external database driver (1309).
MS Office Help says error 1309 indicates:
The specified external database driver returned an error. This error can be caused by performing an operation not supported on this type of external database.
MSDN says error 1309 indicates:
1309 Can't modify table structure. Another user has the table open.
I think I know what the problem is. In the Excel workbook a dialog box is open. It says that "MS Office Excel is waiting for another application to complete and OLE action. So Excel is locked up while it's waiting for the Access procedure to finish but the Access procedure can't finish until it is able to make changes to the Excel file.
Is there a simple/smart workaround for this? (Hopefully one that doesn't involve opening a an empty Excel file, transferring to that file, and then copying from that file to the Excel file I want the data in.)
Thank you for you help!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Open in new window