G
Guest
Private Sub Form_Close()
If Me.Dirty Then
DoCmd.RunMacro (macEmailReferral)
DoCmd.Close acForm, "frmDiscAdd"
Else
DoCmd.Close acForm, "frmDiscAdd"
End If
End Sub
I am trying to have the form close in a different way if it is dirty. What
am I doing wrong?
If Me.Dirty Then
DoCmd.RunMacro (macEmailReferral)
DoCmd.Close acForm, "frmDiscAdd"
Else
DoCmd.Close acForm, "frmDiscAdd"
End If
End Sub
I am trying to have the form close in a different way if it is dirty. What
am I doing wrong?