J
Josh
Just so that user doesn't get dumped to code window, I'd like start adding
generic error handling to my forms. I've seen examples of generic error
handling, some as simple as the basic button wizard:
On Error GoTo Err_Command70_Click
My question, can I have the same "name" (for lack of a better word) for all my
generic error handlers? In other words, have
Private Sub Form_Current()
On Error GoTo ErrHandler
rest of sub
Private Sub Form_BeforeUpdate()
On Error GoTo ErrHandler
rest of sub
or will I need to have a different GoTo "name" for each event, such as:
Private Sub Form_Current()
On Error GoTo Err_Form_Current
rest of sub
Private Sub Form_BeforeUpdate()
On Error GoTo Err_Form_BeforeUpdate
rest of sub
Thanks
generic error handling to my forms. I've seen examples of generic error
handling, some as simple as the basic button wizard:
On Error GoTo Err_Command70_Click
My question, can I have the same "name" (for lack of a better word) for all my
generic error handlers? In other words, have
Private Sub Form_Current()
On Error GoTo ErrHandler
rest of sub
Private Sub Form_BeforeUpdate()
On Error GoTo ErrHandler
rest of sub
or will I need to have a different GoTo "name" for each event, such as:
Private Sub Form_Current()
On Error GoTo Err_Form_Current
rest of sub
Private Sub Form_BeforeUpdate()
On Error GoTo Err_Form_BeforeUpdate
rest of sub
Thanks