I have a problem with a logbook database that i created. We work 7am to 7pm but what i want it to do is that when the clocks turn midnight i want it to revert to the previous days date from midnight till 7am
When the user is inputting the data he selects either dayshift or nightshift and using the after update if nightshift is selected the date automatically goes back to the day before. But this is no use from 7pm till midnight as it is still the same day.
At the moment i use the following.
Private Sub Shift_AfterUpdate()
If Shift = 2 Then (2=Nightshift)
Date = Date - 1
End If
End Sub
Any help would be greatly appreciated.
Paul
When the user is inputting the data he selects either dayshift or nightshift and using the after update if nightshift is selected the date automatically goes back to the day before. But this is no use from 7pm till midnight as it is still the same day.
At the moment i use the following.
Private Sub Shift_AfterUpdate()
If Shift = 2 Then (2=Nightshift)
Date = Date - 1
End If
End Sub
Any help would be greatly appreciated.
Paul