Formatting time in a report

J

justlearnin

I have a report that I am running from a query. The time in the tables is
just a general number, since most of the time the time is entered as '15',
'30', all depending on the length of time. When I run the report, I need it
to calculate the time for me. So if the total is 150, it should put 2:30. How
do I do this?
 
J

John Spencer

I would use the following formula.
Assumption: Time is entered as a duration of minutes with no fractional
entries.

TotalMinutes\60 & ":" & Format(TotalMinutes Mod 60,"00")

First part is integer math ( reverse slash). You could also try
Int(TotalMinutes/60).
 

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