Just having trouble in stopping the close when it meets the criteria.
I'm clicking on the X to close the form
I'm clicking on the X to close the form
Code:
Private Sub Form_Close()
If Me.app_date > #1/1/1900# And action = "Letter" Then
MsgBox "Action cannot be letter. Please amend"
Exit Sub
End If
End Sub