How to handle Form Error Event in class module?

P

P

Hi,

I use a class module for navigation buttons with all my forms. Some of the
buttons are Save_Record and Close_Form. I sink all form events from the form
to the class module so I can handle all events once in the class module. I
would like to be able to handle the form Error event in the class module
also. When an error comes up in main form, frm_error triggers and the access
error comes up before the event sinks into the module where I do error
handling under frmMain_error. Do you have any suggestions? Thank you. P
 
A

Albert D. Kallal

YOu have to use error code to trap the error at the form level. So, just
make a standard error routine in each form that calls your code..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top