Hello,
I have an issue with a If statement that i have wrote, it is looking at the system time which i have set using the correct format but i get the feeling i have other looked something very simple.
I would be gratfull if someone could have a look and feedback any suggestions.
If Me.txtTime >= #7:00:00 AM# <= #2:59:00 PM# Then
Me.Code = "A"
End If
If Me.txtTime >= #3:00:00 PM# <= #10:59:00 PM# Then
Me.Code = "B"
End If
If Me.txtTime >= #11:00:00 PM# <= #6:59:00 AM# Then
Me.Code = "C"
End If
I have an issue with a If statement that i have wrote, it is looking at the system time which i have set using the correct format but i get the feeling i have other looked something very simple.
I would be gratfull if someone could have a look and feedback any suggestions.
If Me.txtTime >= #7:00:00 AM# <= #2:59:00 PM# Then
Me.Code = "A"
End If
If Me.txtTime >= #3:00:00 PM# <= #10:59:00 PM# Then
Me.Code = "B"
End If
If Me.txtTime >= #11:00:00 PM# <= #6:59:00 AM# Then
Me.Code = "C"
End If
Last edited: