S
Song
My following code cannot set focus to DateTo. It jumped to next control.
Where did I do wrong?
Private Sub DateTo_Exit(Cancel As Integer)
If Me.DateFrom > Me.DateTo Then
MsgBox "DATE FROM cannot be later than DATE TO", vbInformation
DateTo.SetFocus
End If
End Sub
Where did I do wrong?
Private Sub DateTo_Exit(Cancel As Integer)
If Me.DateFrom > Me.DateTo Then
MsgBox "DATE FROM cannot be later than DATE TO", vbInformation
DateTo.SetFocus
End If
End Sub