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 / December 2005

Tip: Looking for answers? Try searching our database.

How do you use a yes/no field as a filter in reports?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
California Ed - 08 Dec 2005 18:29 GMT
I can use a filter equation in another field such as: [Name] like "A*" and
the filter works fine. However I need to do the same thing on a yes/no field
but can't figure out the correct equation. Can anyone help?
Duane Hookom - 08 Dec 2005 20:39 GMT
YesNo fields store either -1/yes or 0/no (or possibly Null). You can use
[YesNoField]=0
or
[YesNoField]=False
or
[YesNoField]=-1

Signature

Duane Hookom
MS Access MVP
--

>I can use a filter equation in another field such as: [Name] like "A*" and
> the filter works fine. However I need to do the same thing on a yes/no
> field
> but can't figure out the correct equation. Can anyone help?
Marshall Barton - 08 Dec 2005 20:40 GMT
"California Ed" <California Ed@discussions.microsoft.com>
wrote:

>I can use a filter equation in another field such as: [Name] like "A*" and
>the filter works fine. However I need to do the same thing on a yes/no field
>but can't figure out the correct equation. Can anyone help?

Just use either
    [yesnofield] = True
or
    [yesnofield] = False

Signature

Marsh
MVP [MS Access]

 
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.