The following code works on my Access 2010, but brings a compile error for users with Access 2003:
DoCmd.OutputTo acOutputReport, "trndOTrpt", "Excel97-Excel2003Workbook(*.xls)", "", False, "", , acExportQualityPrint
So I changed the output format to acFormatXLS
(per this website's suggestion):
DoCmd.OutputTo acOutputReport, "trndOTrpt", acFormatXLS, "", False, "", , acExportQualityPrint
This opens on my Access 2010 (yet to test Access 2003) but only in the Excel 5.0/95 Workbook format. Is there a way I can open this in the normal 97-03 .xls format in both versions of Access?