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 / Database Design / July 2005

Tip: Looking for answers? Try searching our database.

YES OR NO VALIDATION RULE

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
June27 - 15 Jul 2005 22:33 GMT
In Access 2003, I am simply trying to create a few fields in which the only
data that can be entered into the field is "yes" or "no". I am hoping to do
this through my database field properties. (bound). For example, an employee
needs to know if there is signage at a job site, a Yes in that field can then
be later used to create a report of all the yes answers, so he can go to
those jobsites and pick up the signs.(Obviously,  am new to Access). Thank
you for your help and patience.
June27
Rick Brandt - 15 Jul 2005 22:45 GMT
> In Access 2003, I am simply trying to create a few fields in which
> the only data that can be entered into the field is "yes" or "no". I
[quoted text clipped - 5 lines]
> patience.
> June27

Any reason you don't just use the Yes/No DataType?

Signature

I don't check the Email account attached
to this message.     Send instead to...
RBrandt    at       Hunter      dot      com

June27 - 15 Jul 2005 23:01 GMT
I am not familiar with the Yes/no data type. Can you direct me?

> > In Access 2003, I am simply trying to create a few fields in which
> > the only data that can be entered into the field is "yes" or "no". I
[quoted text clipped - 7 lines]
>
> Any reason you don't just use the Yes/No DataType?
Rick Brandt - 16 Jul 2005 00:19 GMT
> I am not familiar with the Yes/no data type. Can you direct me?

In Table design view select a field and look at the choices offered for the data
type.  Yes/No is one of them.  It stores -1 for True (Yes) and 0 for False (No).
It is often displayed as a CheckBox in forms, but on reports it can be formatted
to show "True/False", "Yes/No", etc..

Signature

I don't check the Email account attached
to this message.     Send instead to...
RBrandt    at       Hunter      dot      com

KARL DEWEY - 16 Jul 2005 07:05 GMT
You can have it to display more by using an Iif statement --
Iif([YourYesNoField]= -1,"Signs on-site", "Pick up signs for site")

> > I am not familiar with the Yes/no data type. Can you direct me?
>
> In Table design view select a field and look at the choices offered for the data
> type.  Yes/No is one of them.  It stores -1 for True (Yes) and 0 for False (No).
> It is often displayed as a CheckBox in forms, but on reports it can be formatted
> to show "True/False", "Yes/No", etc..
Rick Brandt - 16 Jul 2005 13:46 GMT
> You can have it to display more by using an Iif statement --
> Iif([YourYesNoField]= -1,"Signs on-site", "Pick up signs for site")

No need for that.  The format property can be used for any two text outputs.
For your example one would use a format of...

;"Pick up signs for site";"Signs on-site"

Signature

I don't check the Email account attached
to this message.     Send instead to...
RBrandt    at       Hunter      dot      com

June27 - 16 Jul 2005 21:40 GMT
Thanks for the info.,works like a charm. Table did display checkboxes as you
said it probably would so  I also formatted my forms with (bound) checkboxes.
Very helpful post, thanks again.
June

> > You can have it to display more by using an Iif statement --
> > Iif([YourYesNoField]= -1,"Signs on-site", "Pick up signs for site")
[quoted text clipped - 3 lines]
>
> ;"Pick up signs for site";"Signs on-site"
 
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.