VBA form_error vs on error
Posted
by dmr
on Stack Overflow
See other posts from Stack Overflow
or by dmr
Published on 2010-03-15T19:38:24Z
Indexed on
2010/03/15
19:39 UTC
Read the original article
Hit count: 232
I am trying to set up error handling for a MS-Access application. The standard method to do this seems to be with an On Error statement in each subroutine/function. It seems simpler to me to use the Form_Error function to catch all the runtime errors in that form as opposed to an On Error statement for each sub/function called by an event on that form. (Obviously, for code in modules, there is no Form_Error function and therefore the only method is the On Error statement)
What are the pros and cons of using On Error vs Form_Error?
© Stack Overflow or respective owner