Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Clearing Filter Property

Status
Not open for further replies.

momon

Vendor
May 22, 2002
42
CA
Does anyone know how to clear the FILTER property field under the DATA tab for REPORTS using VBA?

I have a report that can be accessed through the switchboard or is automatically opened when a particular form is closed. The problem is that when the report is accessd through the switchboard, filter#1 is applied. When the report is automatically opened by closing a certain form, filter#2 is applied.

Currently, the report always opens with either filter#1 or filter#2.


I tried the following code to clear the FILTER property but it doesn't seem to work.

Private Sub Report_Close()
Me.Filter = ""
End Sub

Thanks in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top