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 / Modules / DAO / VBA / September 2006

Tip: Looking for answers? Try searching our database.

Filter a report

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Billy B - 29 Sep 2006 22:30 GMT
I have a report that I want to only display the records where PerslNme is not
blank. I would also like to know how to display only the records that are
blank. There are other fields in the report so knowing how to filter for the
blank/null value on that field would also be used and useful to know. The
report name is NMEList. Thank you.
Duane Hookom - 30 Sep 2006 04:43 GMT
Write code (possible the On Click event of a command button) like:

Dim strWhere as String
strWhere = "IsNull(PerslNme)"
DoCmd.OpenReport "NMEList", acPreview, , strWhere

Signature

Duane Hookom
MS Access MVP

>I have a report that I want to only display the records where PerslNme is
>not
[quoted text clipped - 3 lines]
> blank/null value on that field would also be used and useful to know. The
> report name is NMEList. Thank you.
 
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.