ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Chging Filters on a Rpt (https://www.excelbanter.com/excel-programming/345896-chging-filters-rpt.html)

LHaro

Chging Filters on a Rpt
 

Hi -

If someone can help me with this, I would really appreciate it. What I want
to do is export an access report to my c drive that has filters from excel.
My original code simply opens the report and prints it out e.g.

OA.OpenCurrentDatabase ("urizen.mdb")
OA.DoCmd.OpenReport "TherapistRpt", acViewNormal, "Floor='10'"

but now i would like to just export it without printing it out, which i can
do with the following line of code:

OA.DoCmd.OutputTo acOutputReport, "Rpt2", acFormatRTF, "c:\temp\z.rtf"

is there any way i can specify the filter using this method?

Thanks.



All times are GMT +1. The time now is 11:45 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com