D
David
Hello all,
I typically write the error handling towards the end of development.
I saw this bit of code in a response from '69 Camaro, can I use this genreic
error handler marked with *'s at the end of the line for any/all events in my
subs?
Private Sub blah blah blah event()
On Error GoTo ErrHandler '**
'blah blah blah code
ErrHandler: '**
MsgBox "Error in" & vbCrLf & Me.Name & _ **
" form." & vbCrLf & vbCrLf & _ **
"Error #" & Err.Number & vbCrLf & Err.Description **
Err.Clear **
End Sub
I typically write the error handling towards the end of development.
I saw this bit of code in a response from '69 Camaro, can I use this genreic
error handler marked with *'s at the end of the line for any/all events in my
subs?
Private Sub blah blah blah event()
On Error GoTo ErrHandler '**
'blah blah blah code
ErrHandler: '**
MsgBox "Error in" & vbCrLf & Me.Name & _ **
" form." & vbCrLf & vbCrLf & _ **
"Error #" & Err.Number & vbCrLf & Err.Description **
Err.Clear **
End Sub