On a form users enter records into I have created a close button and placed it on the form. The problem is that when a duplicate number is entered in the primary key field and the close button I have created is used, no error message of a duplicate record is given. The form just closes and the record is not saved. When the 'X' in the upper right corner is used to close the form it tells the user that a duplicate value has been entered in the primary key field.
Is there a way to correct this problem with the close button I have created? Add code or another solution??
Is there a way to correct this problem with the close button I have created? Add code or another solution??