How to handle Form Error Event in class module?

  • Thread starter Thread starter P
  • Start date Start date
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
 
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..
 
Back
Top