I have a sub form which entries are added the mail form is a particular course. I need to stop users entering duplicate entries. The values are customerid and resourcetypeid. I need thebeforeupdate event to check if any entry is entered for an employee before updating the form.