ACC2000: Null Value Does Not Pass Validation Rule (209021)
The information in this article applies to:
This article was previously published under Q209021 Novice: Requires knowledge of the user interface on single-user computers.
This article applies only to a Microsoft Access database (.mdb).
SYMPTOMS
If a field has a validation rule and you leave the field blank (or Null) in a table's Datasheet view, you may be unable to save the record.
CAUSE
This behavior occurs when you add a new record with two fields, one of
which has a data type of AutoNumber. The record cannot be saved until it has received some input.
RESOLUTION
Include "Or Is Null" as part of the validation rule for the field. For
example, a validation rule for a text field can be:
REFERENCESFor more information about the ValidationRule property, click Microsoft Access Help on the
Help menu, type validationrule, validationtext properties in the Office Assistant or
the Answer Wizard, and then click Search to view the topics
returned.
Modification Type: | Major | Last Reviewed: | 6/24/2004 |
---|
Keywords: | kbprb KB209021 |
---|
|