S
Steve
I put in a control for the [Date] field in a form which
will help eliminate data entry errors. Here is my code:
Private Sub Date_Exit(Cancel As Integer)
If (([Date] > (Now() + 7)) Or ([Date] < (Now() - 7))) Then
MsgBox "Invalid Date - Try Again!", vbOKOnly
Me!Date.SetFocus
End If
End Sub
The problem is that the focus goes to the next field, not
the [Date] field.
Does anyone see the problem?
Thanks for the help.
will help eliminate data entry errors. Here is my code:
Private Sub Date_Exit(Cancel As Integer)
If (([Date] > (Now() + 7)) Or ([Date] < (Now() - 7))) Then
MsgBox "Invalid Date - Try Again!", vbOKOnly
Me!Date.SetFocus
End If
End Sub
The problem is that the focus goes to the next field, not
the [Date] field.
Does anyone see the problem?
Thanks for the help.