liam_conor
Board Regular
- Joined
- Oct 9, 2002
- Messages
- 180
I have two fields on a form, Date1 and Date2, where the user must fill out at least one before entering the record. If the user does not fill out one of the two I want to prompt him with a message box. Here is an example of what I am currently trying, obviously it does not work. Any examples?
Private Sub Form_AfterInsert()
If Date1.Value = "" And Date2.Value = "" Then
MsgBox "You must fill out either Date1 or Date2"
End If
End Sub
Private Sub Form_AfterInsert()
If Date1.Value = "" And Date2.Value = "" Then
MsgBox "You must fill out either Date1 or Date2"
End If
End Sub