Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Validation Rule not working

Posted on 2006-07-04
3
247 Views
Last Modified: 2008-03-03
I have 2 text boxes on a form.  One text box (B) has a validation rule (a DLookup formula) based off the value in itself and the other (A).  If I input values in A and B, the validation rule works.  However, if I go back and change the value in A that is not valid, nothing happens.  I want it to do some kind of requery where it would pick up this error in the validation rule in B.  I know requery works for Dlookups in control sources, but it does not seem to work for Validation Rules.  
0
Comment
Question by:mak345
  • 2
3 Comments
 
LVL 77

Expert Comment

by:peter57r
ID: 17036986
Hi mak345,
You validation rule in B is not going to trigger unless you change the value of B.

Sounds like you need to be doing something in the validation rule for A as well.

Pete
0
 

Author Comment

by:mak345
ID: 17037079
Is there any kind of code I can include to trigger the rule?
0
 
LVL 77

Accepted Solution

by:
peter57r earned 25 total points
ID: 17037691
Move your validation to code in the Form_Beforeupdate event procedure.
Then whatever chnages on the form the validation will be re-done.

Pete
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question