CODE
DoCmd.OutputTo acOutputQuery, "QExportPtData2", acSpreadsheetTypeExcel9, stPath & FilePatients, True
... to export the results of query "QExportPtData2" to an Excel spreadsheet. When I try to run this now, A2010 says "the format in which you are attempting to output the current object is not available".
Any help to fix this is much appreciated!
J