This set entered on 8-3-14
8.2.14.1
VALIDATE DATA ENTRY WITH CALCULATION
You use the VALIDATE BY CALCULATION option. You could use the validation MAXIMUM NUMBER OF CHARACTERS, but then you could enter a zip with 7 digits….
create a calculation with a Boolean result, that returns a TRUE when the data is valid and a FALSE otherwise.
a. Click on the Zip Code field
b. In the VALIDATION TAB, turn on VALIDATE BY CALCULATION
c. Choose TEXT FUNCTIONS
d. Choose Length (Text )
It returns the LENGTH of a text value. You use it here to see how many characters are in the Zip Code field.
the PARAMETER of the LENGTH FUNCTION.
use the COMPARISON OPERATOR to compare it to something. In this case, use the “=” operator and type a 5 after it.
a TRUE. But you also WANT TO ACCEPT A ZIP CODE WITH 10 CHARACTERS. So in the Operator List, choose “or.”
It connects two Boolean values and returns TRUE if EITHER VALUE IS TRUE.
type a “=10”
Length ( Zip Code ) = 5 or Length ( Zip Code ) = 10
you LEAVE the record. This includes most calculations.