I would like to round the time to the nearest quarter hour. Example:
round 01:08 PM to 01:15 PM, round 01:07 PM to 01:00 PM.
Answered yesterday by MVP Steve Schapel in the Forms forum
_____________________________________________
Caution: air code (untested)...
Dim InputTime As Date
Dim CurrentSeconds As Integer
Dim RoundedSeconds As Integer
InputTime = Now
CurrentSeconds = Minute(InputTime) * 60 + Second(InputTime)
RoundedSeconds = CurrentSeconds Mod 900
If RoundedSeconds < 450 Then
Me![In] = DateAdd("s", RoundedSeconds * -1, InputTime)
Else
Me![In] = DateAdd("s", 900 - RoundedSeconds, InputTime)
End If