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

acspreadsheettypeexcel4 export error

Status
Not open for further replies.

TrollBro

Technical User
Sep 4, 2004
98
US
I have users who for whatever reason need the excel4 formated file, but in an Access2K or 2003 database the acSpreadsheetTypeExcel4 generates an error. It works fine in an access97 database, but not the 2K or 2003 databases. My code is below. changing to excel7, 8, 9, 5 all work without an error. Is there something I need to do differently with this?

DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel4, stDocName, SaveASstr, True

Thanks
 
I dont believe that 2k or 2003 access support the excel4 any longer. Is there a reason you can not use 5 or better?


Andy Baldwin

"Testing is the most overlooked programming language on the books!
 
Thanks Andy - there was a user need for an xls4 version, but I can go xls8 and if they need the xls4 version they can convert it manually. The 97.mde I converted to A2k is really doing some strange things and I thought it might be related to this issue - but I'm beginning to think its a separate issue.

Thanks
 
Your welcome.

Andy Baldwin

"Testing is the most overlooked programming language on the books!
 
Another way is to export a .csv file that ANY version of Excel can read.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top