Hi,
I have an unbound form in Access 2007, where the users have to enter person details and then also an alternate ID from another source system in a free text box.
When they click save it runs a DoCmd.RunSQL INSERT INTO statement and commits the data to the table.
How can I get it to check if the alt_ID that has been entered already exists in the person table? I want to display a helpful error message if the alt_ID already exists. The standard access error message would not be helpful to users.
Cheers
Foxy
I have an unbound form in Access 2007, where the users have to enter person details and then also an alternate ID from another source system in a free text box.
When they click save it runs a DoCmd.RunSQL INSERT INTO statement and commits the data to the table.
How can I get it to check if the alt_ID that has been entered already exists in the person table? I want to display a helpful error message if the alt_ID already exists. The standard access error message would not be helpful to users.
Cheers
Foxy