How do you filter a report you use in
DoCmd.OutputTo acOutputReport, "reportName", ...
I can filter a report in DoCmd.OpenReport
DoCmd.OpenReport "reportName", acViewNormal, , "[fieldname]=" & "whatever"
The DoCmd.OutputTo doc says that if you leave the Objectname parameter blank it will use the active object. Is there a way to make the report I want to use the active object, filter it then call DoCmd.OutputTo ?
Thanks,
Warren
DoCmd.OutputTo acOutputReport, "reportName", ...
I can filter a report in DoCmd.OpenReport
DoCmd.OpenReport "reportName", acViewNormal, , "[fieldname]=" & "whatever"
The DoCmd.OutputTo doc says that if you leave the Objectname parameter blank it will use the active object. Is there a way to make the report I want to use the active object, filter it then call DoCmd.OutputTo ?
Thanks,
Warren