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.

Record Validation Rule

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Laura - 20 Jul 2005 19:57 GMT
I have a table with 5 Y/N fields.  I want to make it required that only one
can be checked.  I know how to do this at a form level.  However, I think
that people who build update queries and change data in the table forget to
clear out the old field.  I want to force this at table level.  Is this
possible?
John Vinson - 21 Jul 2005 01:23 GMT
>I have a table with 5 Y/N fields.  I want to make it required that only one
>can be checked.  I know how to do this at a form level.  However, I think
>that people who build update queries and change data in the table forget to
>clear out the old field.  I want to force this at table level.  Is this
>possible?

Well, it violates normal form: fields should NOT be mutually
dependent.

Might you consider instead using a single Integer field with values 1
to 5? The user interface on a Form could be an Option Box with five
checkboxes; only one will be able to be checked.

                 John W. Vinson[MVP]    
 
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.