The information in this article applies to:
SYMPTOMS
Moderate: Requires basic macro, coding, and interoperability skills.
CAUSE
Microsoft Access evaluates expressions in parts, and compares each part to
the value in the field being validated. The expression "=true and not true"
is evaluated as:
This results in the error message if you enter zero in the field because the validation fails. RESOLUTION
Use parentheses in the expression to change the way the expression is
evaluated. The correct syntax for the example above is:
Microsoft Access will interpret this expression as:
Zero is an acceptable value for a field with the above validation rule. MORE INFORMATIONSteps to Reproduce Behavior
Additional query words: boolean bitwise math
Keywords : kbusage GnlValid |
Last Reviewed: March 27, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |