Filter report while its opened

teel73

Registered User.
Local time
Today, 03:26
Joined
Jun 26, 2007
Messages
205
I'm trying to filter my report while my report remains open. I have a form that opens when the report opens. The form has three combo boxes that are used to filter the form. On each combo box AfterUpdate event I have the following code:
Code:
Dim rpt As Report
Set rpt = Report_rptIssuesReport
rpt.Filter = "[Vendor] = [Forms]![frmFilterReport]![cboVendor].value Or [Forms]![frmFilterReport]![cboVendor].value Is Null"
rpt.FilterOn = True

That code will filter the report for the first time, but if I change to another value the code doesn't do anything.

I want to be able to filter my report without having to close it or the filter form. I need something like a requery but you can't requery a report or can you?
 

Users who are viewing this thread

Back
Top Bottom