In over 10 years of creating Access reports, I have never set a filter
property of a report like this. I create a filter string/expression prior to
opening the report and use the strSQL in the DoCmd.OpenReport method like:
Dim strSQL as String, intCounter As Integer
For intCounter....
Next
DoCmd.OpenReport "rptYourReport", acPreview, , strSQL
Your strSQL ends up as the filter of the report. There is nothing to clear.

Signature
Duane Hookom
MS Access MVP
>I have a form to filter a my rptinventory:
>
[quoted text clipped - 58 lines]
>
> End Code *****
Brook - 29 Apr 2005 03:28 GMT
Thanks Duane,
Do you think that I have poor design? B/c it works really well, I have my
form with 5 different (cbobox) filter options, and I can choose one or all
of them to filter my report.
its not a big deal if I can't return to the original state of the form
(with no filter), I was just wondering if it was possible and it might be
nice if it could be done.
Thanks,
Brook
> In over 10 years of creating Access reports, I have never set a filter
> property of a report like this. I create a filter string/expression prior to
[quoted text clipped - 70 lines]
> >
> > End Code *****
Duane Hookom - 29 Apr 2005 04:15 GMT
I am somewhat surprised that the filter property is retained without a
"save" command in there. I suppose you could set the filter to "" in the On
Close event of the report.

Signature
Duane Hookom
MS Access MVP
> Thanks Duane,
>
[quoted text clipped - 91 lines]
>> >
>> > End Code *****
Brook - 29 Apr 2005 04:34 GMT
Duane,
The filter is an "on the fly " when I open my frminventorysearch, it opens
my rptinventory, when in turn, when I choose my filter options, will filter
the report on the fly, I don't save the filter options ... its my option to
search my 10,000 plus records ..
Do you understand?
> I am somewhat surprised that the filter property is retained without a
> "save" command in there. I suppose you could set the filter to "" in the On
[quoted text clipped - 95 lines]
> >> >
> >> > End Code *****
Duane Hookom - 30 Apr 2005 03:43 GMT
I don't understand why you don't just create a "where" clause and use it in
the DoCmd.OpenReport method.

Signature
Duane Hookom
MS Access MVP
> Duane,
>
[quoted text clipped - 114 lines]
>> >> >
>> >> > End Code *****