AlanTylman
Technical User
Hi
I am trying to export a query from Access 2003 to Excel 2003 that has over 17000 lines and I am trying to use the TransferSpreadsheet command as below.
The spreadsheet is created but has 3 sheets, 2 of which only contain the header row.
While I can probably code something to delete the unwanted ones in Excel I'd prefer not to (being a bit lazy as I am!)
Any help most appreciated!
I am trying to export a query from Access 2003 to Excel 2003 that has over 17000 lines and I am trying to use the TransferSpreadsheet command as below.
Code:
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "{query name}", "{file path}"
The spreadsheet is created but has 3 sheets, 2 of which only contain the header row.
While I can probably code something to delete the unwanted ones in Excel I'd prefer not to (being a bit lazy as I am!)
Any help most appreciated!