total Minutes to Hours:minutes on report

B

Brian

I have a report that groups on several items. Each of the
group footers needs to convert the total number of minutes
to Hours:minutes. I can't change the datatype of the
field which is long integer. I have tried using the
calculated text box for total minutes in several
conversions but have been unsuccessful. When I generate
the report, it brings up the box wanting me to put in a
parameter value. Any help would be appreciated.

Int([grp5_hours)/60) & ":" & ([grp5_hours])-Int
([grp5_hours])/60)*60

[grp5_hours] = is the calcuated field in the group footer,
that references back to the field name [hours]

thanks
 
M

Marshall Barton

Brian said:
I have a report that groups on several items. Each of the
group footers needs to convert the total number of minutes
to Hours:minutes. I can't change the datatype of the
field which is long integer. I have tried using the
calculated text box for total minutes in several
conversions but have been unsuccessful. When I generate
the report, it brings up the box wanting me to put in a
parameter value. Any help would be appreciated.

Int([grp5_hours)/60) & ":" & ([grp5_hours])-Int
([grp5_hours])/60)*60

[grp5_hours] = is the calcuated field in the group footer,
that references back to the field name [hours]


Did you forget the = sign in front of your expression?

Unless you misspelled something (or the missing ] is not a
posting typo), your expression looks like it should work,
but it would be better to use:

=[grp5_hours] \ 60 & Format([grp5_hours] Mod 60, "\:00")
 

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