Export Access 2007 Query to Excel 2007+
Posted on 2013-01-11
I am trying to export the results of a query to excel so that i can use the excel sheet on my tablet pc.
However, when the excel sheet is saved to my pc it is in "2003-2007" format and this is not compatible with my tabet pc.
I need to change my code (below) so that the excel file is in a later format than 2003-2007.
Can anyone help please?
DoCmd.OutputTo acOutputQuery, "MSSL Customer Details", "Excel97-Excel2003Workbook(*.xls)", "", True, "", 0, acExportQualityPrint
I have also tried the following code but this is no good either:
DoCmd.OutputTo acQuery, "MSSL Customer Details", "MicrosoftExcel(*.xlsx)", "", False, ""