Validation Rule

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I set a rule for a field in a form that is dependant on another field.
For example If field A = "YES" then Field B Must be >2
 
at the TABLE LEVEL

if you do it in a form; you'll have to rewrite it when you build a 2nd form
based on that table
 
How do I set a rule for a field in a form that is dependant on another field.
For example If field A = "YES" then Field B Must be >2

Use a Table validation rule (in the Table properties in the design view). The
rule must cover both cases, e.g.

(FieldA = "Yes" AND [FieldB] > 2) OR [FieldB] <= 2


John W. Vinson [MVP]
 
How about if the fields are on separate tables?

John W. Vinson said:
How do I set a rule for a field in a form that is dependant on another field.
For example If field A = "YES" then Field B Must be >2

Use a Table validation rule (in the Table properties in the design view). The
rule must cover both cases, e.g.

(FieldA = "Yes" AND [FieldB] > 2) OR [FieldB] <= 2


John W. Vinson [MVP]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top