Validation Rule

S

Shark

I'm trying to enter an expression in "validation rule" so
that any date entries in my report that are on or before
January 1, 2000 will receive a message that says "the date
is invalid". I'm entering "the date is invalid" in the
validation text line. My problem is that the expression
I'm entering under "validation rule" is incorrect. I've
tried <=#01/01/2000# and several variations on that, but
none are working. Thanks for the help!
 
M

mackie

try to set the field format to mm/dd/yyyy
then place your validation rule
i.e. <=01/01/2000

i just tried it.... it works!
 
J

John Vinson

I'm trying to enter an expression in "validation rule" so
that any date entries in my report that are on or before
January 1, 2000 will receive a message that says "the date
is invalid". I'm entering "the date is invalid" in the
validation text line. My problem is that the expression
I'm entering under "validation rule" is incorrect. I've
tried <=#01/01/2000# and several variations on that, but
none are working. Thanks for the help!

If you want a message to appear on earlier dates, change the <= to >=.
A Validation rule fires when the data entered VIOLATES the rule - as
you have posted it, you would only be allowed to enter dates before
1/1/00, and would get the error message for any later date.
 

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

Similar Threads

validation rule 1
Validation Rule for an * 3
date/time validation rule 1
Validate a Date 1
get out of control 5
Validation Rule Question 9
Validation Rule in Access 2007 3
Input Mask or Validation? 24

Top