Function RoundDwn(ByVal InNum As Integer) As Integer
If InNum < 15 Then
RoundDwn = 0
Else
If InNum >= 15 And InNum < 30 Then
RoundDwn = 15
Else
If InNum >= 30 And InNum < 45 Then
RoundDwn = 30
Else
RoundDwn = 45
End If
End If
End If
End Function
Function RoundedDate(ByVal InDate As Date) As Date
RoundedDate = DateAdd("n", -DatePart("n", InDate), InDate)
NewMins = RoundDwn(DatePart("n", InDate))
RoundedDate = DateAdd("n", NewMins, RoundedDate)
End Function