troubleshooting Question

VB Access DB Constraints

Avatar of travishaberman
travishaberman asked on
Microsoft AccessVisual Basic Classic
5 Comments1 Solution191 ViewsLast Modified:
Hi Experts,

I am working with Access and VB.  I need the to enforce some constraints at the DB.  Specifically, have 4 yes/no fields in a table {F1, F2, F3, F4}.

I want the DB to enfoce the following constraint....

           IF (F1 OR F2 OR F3) = True
           THEN F4 must be true

... How can I add a constraint like this to my DB?  To be clear, I know that I can check data as it goes into the DB and validate that the user has appropriatly entered F4=True if any of the other fields are... This is not good enough - I want the DB to through an error back at them....

Thanks so much,

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros