I
IT-1957
I have a form for wich I would like the Shift to be set on one of the
controls, Day shift runs from 4:00 am to 3:30 pm and Swing Shift from 3:31 pm
to 3:00 am
I have this code but is not working and I do not know how to create a
diferent one,
I want the control text65 TO CHANGE TO day or Swing a soon as the time fits
its range, with out opening or closing the form.
Thank you for your help.
Private Sub Form_Timer()
Me.lblclock = Now()
If Time() > #4:00:00 AM# And Time < #3:30:00 PM# Then
Me.Text65 = "DAY"
Else
Me.Text65 = "SWING"
End If
End Sub
controls, Day shift runs from 4:00 am to 3:30 pm and Swing Shift from 3:31 pm
to 3:00 am
I have this code but is not working and I do not know how to create a
diferent one,
I want the control text65 TO CHANGE TO day or Swing a soon as the time fits
its range, with out opening or closing the form.
Thank you for your help.
Private Sub Form_Timer()
Me.lblclock = Now()
If Time() > #4:00:00 AM# And Time < #3:30:00 PM# Then
Me.Text65 = "DAY"
Else
Me.Text65 = "SWING"
End If
End Sub