Hi All,
I have the following code to export a query into a excel file:
Dim outputFileName As String
outputFileName = "C:\AccountSpreadsheet\test.xls"
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "Q_Search_Invoices", outputFileName, True
Dim xlApp As Object
Set xlApp =...