I am trying to export my query to an excel file and I get the above error.
Here is my code:
Not sure what the issue is.Code:Private Sub cmdExcel_Click() DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel12Xml, "queryA", "C:\queryA.xlsx" End Sub