This command worked for me in access 2003, but doesnt work in 2007 :
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "qryHistory", "C:\Documents and Settings\All Users\Desktop\History.xls
How should it be changed to write to the desktop in 2007?
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "qryHistory", "C:\Documents and Settings\All Users\Desktop\History.xls
How should it be changed to write to the desktop in 2007?