Unique names in a field that does not allow duplicates. - 9/10/2001 20:44:00
I have an Access db and I'm trying to add records to a table that has a field that does not allow duplicates in that field. There are 2 ways I think I can accomplish this:
1) Write a form that will let me update the table and incorporate error handling that will intercept the error if the value that is trying to be put in is a duplicate and basically tell the user that the value already exists and to try another. Is this possible and how?
2)Another way I thought to do it would be to use a 2-step form where the first form would use a SELECT statement to check if the value existed and if it did not to then move on to the 2nd form to added all the info to the remaining fields.
Any ideas of a better way to approach this? Just need a nudge in the right direction.