Hi!
Help! I have a 5 digit customer ID (long integer) field in frmClients (reads from tblClients). It is NOT a primary key because not all customers have one. I need to prevent a user from duplicating the ID in the database. I'm thinking I need to put some code in the 'AfterUpdate' on the ID field, but I don't know what the code should be. I've never had to do this before.
I would really appreciate if someone could let me know what that would be. I'm fine just having a message box pop up that says something like "ID already exists in database. Delete Record?"
Thanks a ton!