Hi,
I would like to export a filtered report to excel.
The report is based on query that has lots of fields, but I use the strwhere to open the report with specific records only.
When I try to use the
DoCmd.OutputTo acOutputReport, "QryTrn", "Excel97-Excel2003Workbook(*.xls)", "", True, "", , acExportQualityScreen
I dont see where I can add my strwhere in this line,
Is it at all possible to export only the filtered data if the filtering is done by VBA and not by the qry itself?
I would like to export a filtered report to excel.
The report is based on query that has lots of fields, but I use the strwhere to open the report with specific records only.
When I try to use the
DoCmd.OutputTo acOutputReport, "QryTrn", "Excel97-Excel2003Workbook(*.xls)", "", True, "", , acExportQualityScreen
I dont see where I can add my strwhere in this line,
Is it at all possible to export only the filtered data if the filtering is done by VBA and not by the qry itself?