Trap this error

ansentry

Access amateur
Local time
Tomorrow, 04:43
Joined
Jun 1, 2003
Messages
995
If you open the attached sample you will see what my problem is.

I have Form /Subform with look up combo that will not allow duplicate entries in same subform record. This works fine, access displays an error when a duplicate has been added as it should. What I want to do is trap that error myself and display a msgbox that will allow the entry to undo (the msgbox undo etc I can handle, it the trapping of the error)


Thanks in advance.
 
Last edited:
MStef,


Thank you * 10,000 times.

I found your code, I will change the message to suit.

How did you know what error code number to use? I did a google and did not find a site that gives me a list of the errors and their numbers.
 

Users who are viewing this thread

Back
Top Bottom