N
nouveauricheinvestments
Hi,
I would like to be able to check the time when a specific action is
taken on my form before anything else happens. This is the public
function I am trying to use.
Public Function WhatsTheTime() As String
Select Case Time()
Case "> 7:00:00 AM" To "< 3:00:00 PM"
WhatsTheTime = "Day Shift"
Case ">3:00:00 PM" To "<11:00:00 PM"
WhatsTheTime = "Swing Shift"
Case ">11:00:00 PM" To "< 7:00:00 AM"
WhatsTheTime = "Grave Shift"
End Select
End Function
When I try run this from the immediate window by typing Msgbox
WhatsTheTime, It gives me a blank messagebox. What can I do to
determine whether the time of day is between the above increments?
Right now it is 8:00 AM where I am at.
Thanks
I would like to be able to check the time when a specific action is
taken on my form before anything else happens. This is the public
function I am trying to use.
Public Function WhatsTheTime() As String
Select Case Time()
Case "> 7:00:00 AM" To "< 3:00:00 PM"
WhatsTheTime = "Day Shift"
Case ">3:00:00 PM" To "<11:00:00 PM"
WhatsTheTime = "Swing Shift"
Case ">11:00:00 PM" To "< 7:00:00 AM"
WhatsTheTime = "Grave Shift"
End Select
End Function
When I try run this from the immediate window by typing Msgbox
WhatsTheTime, It gives me a blank messagebox. What can I do to
determine whether the time of day is between the above increments?
Right now it is 8:00 AM where I am at.
Thanks