I have a Start and End time in a table which I find the total time by using
diff: (DateDiff("n",[Start],[End]))
I then want to round this figure up to the nearest 15mins (billing period).
I tried
rounddif: CInt([diff]/15)*15
but it rounds up or down to the nearest 15. I want to force it to always round up.
eg. 6min would round to 15, 33mins would round to 45, etc
Any help would be greatly appreciated.
I am using MS Access 2007
diff: (DateDiff("n",[Start],[End]))
I then want to round this figure up to the nearest 15mins (billing period).
I tried
rounddif: CInt([diff]/15)*15
but it rounds up or down to the nearest 15. I want to force it to always round up.
eg. 6min would round to 15, 33mins would round to 45, etc
Any help would be greatly appreciated.
I am using MS Access 2007
Comment