B
BruceM
I use something like the following for error handling when there is an error
that I want to trap:
ProcErr:
If Err.Number = 2501 Then
GoTo ProcExit
Else
msgbox "Error #" & Err.Number & ", " & Err.Description & " -
Control Name"
Resume ProcExit
End If
Would it make any difference if I eliminated the Else thus:
ProcErr:
If Err.Number = 2501 Then
GoTo ProcExit
End If
msgbox "Error #" & Err.Number & ", " & Err.Description & " - Control
Name"
Resume ProcExit
Also, can I streamline this process in some way, or eliminate the need to
enter the same code over and over? Are there other considerations I should
take into account, or is this effective error handling?
that I want to trap:
ProcErr:
If Err.Number = 2501 Then
GoTo ProcExit
Else
msgbox "Error #" & Err.Number & ", " & Err.Description & " -
Control Name"
Resume ProcExit
End If
Would it make any difference if I eliminated the Else thus:
ProcErr:
If Err.Number = 2501 Then
GoTo ProcExit
End If
msgbox "Error #" & Err.Number & ", " & Err.Description & " - Control
Name"
Resume ProcExit
Also, can I streamline this process in some way, or eliminate the need to
enter the same code over and over? Are there other considerations I should
take into account, or is this effective error handling?