Age Validation Rule

A

Anna

I am supposed to create a validation rule to prevent the
input of data for customers less than 16 years of age
from today's date. How do I do this?
 
J

John Vinson

I am supposed to create a validation rule to prevent the
input of data for customers less than 16 years of age
from today's date. How do I do this?

You obviously need to know the customer's date of birth to do this;
assuming that it's in the field DOB, a validation rule on DOB of
DateAdd("yyyy", -16, Date())

will do the trick.
 
J

John Vinson

You obviously need to know the customer's date of birth to do this;
assuming that it's in the field DOB, a validation rule on DOB of


will do the trick.

OOPS!

Less, not greater.
 

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

Top