Thread
:
Help with Function: Between Time
View Single Post
#
3
May 27th, 2010, 03:58 PM posted to microsoft.public.access.gettingstarted
Steve[_77_]
external usenet poster
Posts: 1,017
Help with Function: Between Time
Several things .......
1. Time is an Access function and returns the current system time.
2. If Time is a field, you need to change the name to something else.
3. If Time #12:01:00 AM# #3:00:00 PM# Then should be:
If Time #12:01:00 AM# And Time #3:00:00 PM# Then
4. "NIGTH SHIFT" is mispelled. Should be "Night Shift"
Steve
"Bre-x" wrote in message
...
Hi,
Why this function is not working?
If a time follows between 12AM and 3PM it should show Day shift, anything
else Night Shift
If Time #12:01:00 AM# #3:00:00 PM# Then
MsgBox "DAY SHIFT"
Else
MsgBox "NIGTH SHIFT"
End If
Steve[_77_]
View Public Profile
View message headers
Find all posts by Steve[_77_]
Find all threads started by Steve[_77_]