G
Gina Whipp
All,
I am trying to restrict TimeOut field to the times indicated below.
Obviously it is not working and I can't see why. The formating on that
field is Medium Time.
If Me.txtTimeOut >= "12:00 AM" And Me.txtTimeOut <= "05:00 AM" Then
MsgBox "You MUST enter a time between 6:00 am and 11:59 PM!",
vbInformation, "AM/PM"
Me.txtTimeOut = Null
End If
Exit Sub
Thanks in Advance!
Gina Whipp
"I feel I have been denied critical, need to know, information!" - Tremors
II
I am trying to restrict TimeOut field to the times indicated below.
Obviously it is not working and I can't see why. The formating on that
field is Medium Time.
If Me.txtTimeOut >= "12:00 AM" And Me.txtTimeOut <= "05:00 AM" Then
MsgBox "You MUST enter a time between 6:00 am and 11:59 PM!",
vbInformation, "AM/PM"
Me.txtTimeOut = Null
End If
Exit Sub
Thanks in Advance!
Gina Whipp
"I feel I have been denied critical, need to know, information!" - Tremors
II