Hi Pete,
It worked well for checking the existing Apartment record.
Then I applied it for Reservation business object. Reservation has attribute Apartment with type Apartment.
If EXISTS Reservation WHERE (Reservation.Apartment.ApartmentNumber=Reservation.Apartment.ApartmentNumber )
Then REPORT ERROR 'This Apartment has been booked'
But when I create a new Reservation, it always reports error regardless the Reservation record with that Apartment Number has already existed or not.
For example: There is a Reservation record with Apartment Number A01. Then I create a new Reservation for ApartmentNumber B02 (There is not yet any Reservation record with Apartment Number B02 data), but still the application reports error 'This Apartment has been booked'
Did I applied the rule wrongly?
Thanks for any help.