Createing a form that I want to prevent dupilcate values.
I have created an index on 3 fields to be primary to prevent duplicate values from being entered.
I want to handle this nicely in a form for data entry that when they select the "Add" button it checks to see if this had a "Uniqueness of index INDEXNAME is violated" error and if so display a warning and put them back into the form. However, On Error doesn't seem to trap this. Is there a way to identify this specific error?
I have created an index on 3 fields to be primary to prevent duplicate values from being entered.
I want to handle this nicely in a form for data entry that when they select the "Add" button it checks to see if this had a "Uniqueness of index INDEXNAME is violated" error and if so display a warning and put them back into the form. However, On Error doesn't seem to trap this. Is there a way to identify this specific error?