Adding Constraint to Ensure Date of Birth is Less than the Current Date

Procedure

  1. In the Palette, click the Constraint icon in the Declare Constraint section and then click the Declare Constraints compartment to add the constraint.
  2. Provide the following details for the constraint in the Properties window:
    • Name as DOBCheck.
    • Description as Check for date of birth.
  3. Double click the DOBCheck constraint to open up the Expression Editor.
  4. From the Actions Palette, click the Check Action icon and then click in the Actions compartment to insert it. Provide the following properties:
    • Explanation as DateofBirth check (not greater than current date).
    • Expressions as DateOfBirth < SESSION.DATE.