I created a data input form to enter new contracts that are tied to two tables. The tables update after the data is saved in the form. I do not want users to enter in duplicate contract numbers. I would like to create a message to let users know if the data they entered is duplicate. I do not need to go to the duplicate record.
My code shows everything I enter to be a duplicate, even when I know that the data I am entering is not a duplicate. How can I only get the message to appear if the data is truly a duplicate entry?