I have a form and one of the fields in indexed (no duplicates allowed). If the user closes the form or moves to another record having entered a duplicate record they receive the standard access msg about not being able to save the record. This isn't very user friendly and I was wondering if it was possible to code it so that if this happened a msg would appear telling them specifically what was duplicated and asking them whether they wanted to change the data or close the form without saving it. If so what event would I need to put the code on?