what i am trying to do is enable or disable report filters on a report depending on a check box i choose on a form everytime i do this with the following code i get an error messgage Error 2451 the report name doesnt exist when i know its there i dont get what i am doing wrong can some1 help please.
Thanks in adavnce
Jason
Code:
Reports!rptACCOUNTRX.Filter = stwhere
Reports!rptACCOUNTRX.FilterOn = True
DoCmd.OutputTo acOutputReport, strrpt, acFormatPDF, "C:\TFRS REPORTS\" & strrpt & today & ".PDF"
Reports!rptACCOUNTRX.FilterOn = False
Thanks in adavnce
Jason