Just use Is Null combined with your other condition via an OR operator.
For example, if you want to insist that a field is between 1900 and 2199 if
there is an entry, use a Validation Rule of:
(Is Null) OR (Between 1900 And 2199)

Signature
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
> Access 97
>
[quoted text clipped - 8 lines]
> to have an IF statement in a validation rule, or to set the validation rule
> refer to a macro?
MT DOJ Help Desk - 07 Feb 2004 05:47 GMT
I didn't think about using IS NULL in conjunction with OR, but it does make
sense. I gave your suggestion a try. However, when I tested it by entering
a value that did not conform to the validation rule, I got an error message
saying that the value is not appropriate for the input mask, as opposed to
the message I specified for when the validation rule is violated. So it
looks like Access 97 is catching the bad data because of the input mask, and
not because of the violation of the validation rule. Any idea why it behave
in this manner?
BTW, I put the validation rule in the field properties of the *table*, and
not the field properties of the *form*.
--Tom
> Just use Is Null combined with your other condition via an OR operator.
>
[quoted text clipped - 21 lines]
> rule
> > refer to a macro?
Allen Browne - 07 Feb 2004 10:47 GMT
You could try removing the Input Mask.
> I didn't think about using IS NULL in conjunction with OR, but it does make
> sense. I gave your suggestion a try. However, when I tested it by entering
[quoted text clipped - 7 lines]
> BTW, I put the validation rule in the field properties of the *table*, and
> not the field properties of the *form*.
Tom
Did you make the field mandatory? Access won't let you leave the field if it is mandatory and empty
Make the field optional and try something like: (field IS NULL) or (field > 100) as a validation rule
Peter
MT DOJ Help Desk - 07 Feb 2004 05:37 GMT
The field is not mandatory.
--Tom
> Tom,
>
[quoted text clipped - 4 lines]
>
> Peter