Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Reports / Printing / January 2007

Tip: Looking for answers? Try searching our database.

two filters on a report

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
paula k - 30 Jan 2007 18:15 GMT
Simple question:  How do I change the filter in the properties tab to do an
"or" filter:

PM_Name="Smith" OR Owner_Name="Smith"

how do I write the code or an or statement?

Thanks!
Duane Hookom - 31 Jan 2007 02:11 GMT
You would normally leave the filter property blank in a saved report. Use the
where condition in the DoCmd.OpenReport method to set the property.

Dim strWhere as String
strWhere = "PM_Name='Smith' OR Owner_Name='Smith'"
DoCmd.OpenReport "rptYourReport", acPreview, , strWhere
Signature

Duane Hookom
Microsoft Access MVP

> Simple question:  How do I change the filter in the properties tab to do an
> "or" filter:
[quoted text clipped - 4 lines]
>
> Thanks!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.