Hi.
I would like to export a query to Excel.
I put a button on a form with the following command line:
DoCmd.OutputTo acOutputQuery, "Query01", acFormatXLS, "C:\Tmp\Test1.xls", True
When I execute this command, the Excel file is opening with the "File error. Some number formats may have been lost" message (the contents of the excel file is OK, not corrupted).
Please help.
Thanks
I would like to export a query to Excel.
I put a button on a form with the following command line:
DoCmd.OutputTo acOutputQuery, "Query01", acFormatXLS, "C:\Tmp\Test1.xls", True
When I execute this command, the Excel file is opening with the "File error. Some number formats may have been lost" message (the contents of the excel file is OK, not corrupted).
Please help.
Thanks