My table's records need to satisfy two conditions:
- Entries in the
ClosingDate
field cannot correspond to a date before what is in theRequestDate
field. - A
BidBond
value may be supplied if, and only if, the record'sType
field is set to "Tender"
The two resultant multi-field validation rules are:
1. ([ClosingDate] Is Null) Or ([ClosingDate] >= [RequestDate])
2. ([Type]="Tender") Or ([BidBond] Is Null)
If Rule 1 is violated, the validation text should be "Closing date cannot occur before the request is made."
If the data entered falls foul of Rule 2, "Bid bonds can only be assigned to tenders." should greet the user.
I know I can combine the two validation rules with an And
clause, but then how would I specify two different validation texts depending on which validation rule is violated?