BlueJacket
Registered User.
- Local time
- Today, 17:42
- Joined
- Jan 11, 2017
- Messages
- 92
Is there a way I can improve this error handling or do I not really need much else for such simple procedures?
Thanks in advance.
Code:
Private Sub butNewProperty_Click()
If gEnableErrorHandling Then On Error GoTo Errhandle
If Me.Dirty Then
Me.Dirty = False
End If
DoCmd.OpenForm "frmNewProperty", , , , , , Me.txtClientID.Value
DoCmd.Close acForm, Me.Name
Exit Sub
Errhandle:
MsgBox "Error " & Err.Number & ": " & Err.Description & _
" Please make a note of this error and when it occured."
End Sub
Thanks in advance.