M
MCSInc
I want to export 5 queries to 5 sheets within the same excel file. The
following command keeps overwriting the same excel file.
DoCmd.OutputTo acOutputQuery, "qry1", acFormatXLS,
"C:\LocalDB\ExcelExportName.xls", False
DoCmd.OutputTo acOutputQuery, "qry2", acFormatXLS,
"C:\LocalDB\ExcelExportName.xls", False
I want qry1 and qry2 to exists as sheets in ExcelExportName.xls
Much appreciate any help. Thanks.
following command keeps overwriting the same excel file.
DoCmd.OutputTo acOutputQuery, "qry1", acFormatXLS,
"C:\LocalDB\ExcelExportName.xls", False
DoCmd.OutputTo acOutputQuery, "qry2", acFormatXLS,
"C:\LocalDB\ExcelExportName.xls", False
I want qry1 and qry2 to exists as sheets in ExcelExportName.xls
Much appreciate any help. Thanks.