How do you go around trying to cancel an update when it is a dulpicating error? Below is detail of my problem:
I have a table in my database that the primary key cannot be duplicate.
When a user try to add arecord with the same product number it gives a long system error,
the problem is in my lost lost focus on the command to add the record I put an error handler to exit the sub but it will not exit the sub. it goes around in cirle with the error message than it finally shuts the program down.
If anyone could share the code to fix this problem I would appreciate it.
thanks Kay
I have a table in my database that the primary key cannot be duplicate.
When a user try to add arecord with the same product number it gives a long system error,
the problem is in my lost lost focus on the command to add the record I put an error handler to exit the sub but it will not exit the sub. it goes around in cirle with the error message than it finally shuts the program down.
If anyone could share the code to fix this problem I would appreciate it.
thanks Kay