I'm trying to export the results of a query (ENTRY_TINITIALS) to an Excel workbook (Entry_Staff.xlsx) where I'll then use another tab in the Excel workbook to format the data.
I have a button with this code:
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel12, "ENTRY_TINITIALS", "K:\AUR Office Databases\Office Performance Database\Analyst\Entry_Staff.xlsx!Sheet1"
But I'm getting this error:
I thought it might be a Reference issue? Here's what I have checked:
I have a button with this code:
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel12, "ENTRY_TINITIALS", "K:\AUR Office Databases\Office Performance Database\Analyst\Entry_Staff.xlsx!Sheet1"
But I'm getting this error:
I thought it might be a Reference issue? Here's what I have checked: