try using the TransferText command:
DoCmd.TransferText acExportFixed, ExportSpec, WrkTbl, ExportFile
ExportSpec : is the saved export specification you have done on the table or querry (Manually), here you define your specs fixed, with separators or not,...
WrkTbl : is the tablename or querry...
Try using this alternate command:
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel97, WrkTbl, ExportFile
Where Wrktbl is the variable holding the tablename and Exportfile is the variable holding the destination & output name.
Using excel97 type make it more portable.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.