Time Calculations in Increments

M

Michelle

I need help in calculating elapsed time in increments of
15 minutes. If more than 18 minutes, it should roll over
to the next increment. Right now, calc is (timeout -
timein) = hh:mm format. Thanks!
 
A

Allen Browne

Type this expression into the Field row of a query:
Minutes: 15 * CLng(DateDiff("n", [timein], [timeout])/15)

The expression returns the number of minutes between the timein and timeout
fields, rounded to the nearest quarter hour.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top