I am adding data via a form. When I try to add a non-unique number I get an error message saying 'non-unique' etc.
OK, so if a non-unique number is detected I want to put up a message box to the user and then delete the erroneous record. I have written some code to do this on detection of an error, but it never runs! I have tested the code on its own and it runs fine..
The unique number is generated by joining the two numbers input into the form; the two numbers themselves can be duplicates.
Thanks for reading this, and for any ideas you may have.
OK, so if a non-unique number is detected I want to put up a message box to the user and then delete the erroneous record. I have written some code to do this on detection of an error, but it never runs! I have tested the code on its own and it runs fine..
The unique number is generated by joining the two numbers input into the form; the two numbers themselves can be duplicates.
Thanks for reading this, and for any ideas you may have.