Can I FILTER reports using code

viperstingray

Registered User.
Local time
Today, 03:15
Joined
May 31, 2005
Messages
87
Is there any way that I can control the filter property of a report through a form? I want the user to select the client and facility that they would like to report on (using cascading combo boxes). Is there any way that I can use that selection to set the filter.

EX:
cboClient==> MICROSOFT
cboFacility=> California

I would want the report to use only show all Microsoft California facilities.

Your help is appreciated.
 
viper,

DoCmd.OpenReport "YourReport",,,"[cboClient] = '" & Me.cboClient & "' and [Facility] = '" & Me.cboFacility & "'"

Wayne
 

Users who are viewing this thread

Back
Top Bottom