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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DoCmd.TransferSpreadsheet problem 1

Status
Not open for further replies.

Lhuffst

Programmer
Jun 23, 2003
503
US
I have a fe/be 2003 database that was able to use the docmd.transferspreadsheet without problem.
Our company has upgraded to office 2010 and now this step is giving me the error "cannot find installable isam".
I changed the code to reflect the new office version but that didn't help. Does anyone know what I need to change?

The database has not been converted to .accdb format.
Code:
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel4, _
     "TblInternalAudit", "\\cobwin02\FHMeterRental\FireHydrant Database\FHExport\AccountingGroup.xls", True
 
I had a problem when upgraded to Access 2013. I tried using current version of excel and got error, so ended up using Excel9, an earlier version of excel format and that worked. Last week I had seen some code on a forum that solved the problem of being able to save to a more current version of excel format. Perhaps it will work for you. Add Xml to the ExcelType if using any format above acSpreadsheetTypeExcel9. See below:

[tt][pre]acSpreadsheetTypeExcel12Xml[/pre][/tt]

If your goal is to save to an earlier version (you show 4 in your example), then you may need to try a number higher than 4 until you no longer receive the error.
 
sxschech. Thanks for the example, I changed it to acspreadsheettypeexcel12 and it seems to work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top