This image shows the Add Validation Rule dialog that helps you define the rule and its failure handling.