AndrewMozley
Programmer
(Simplified)
I have a report which shows <Employee> <Job> <Time spent>
The time is stored in minutes, but I like to display it as hh.mm
So a few of lines of the report might have :
[tt]
John Smith J1234 7.00
X0045 2.30
Will Young J1234 11.00
[/tt]
I have a function Convhrs() which will convert a number of minutes to the display format shown above (e.g. 150 minutes shows as 2.30 - two and a half hours). So the expression for that field on the report is Convhrs(detail.minutes)
That works fine. However I would also like to show subtotals and a grand total on the report. However I know that I cannot specify the total field for time by specifying the field as Convhrs(detail.minutes) and specifying that it has to be calculated as Sum, because the way the reporter then works is to evaluate the individual Convhrs() results - which are character strings - and then try to add them together - which does not work. What I had wanted is to add them up, and then apply the Convhrs() function.
Thanks in advance
I have a report which shows <Employee> <Job> <Time spent>
The time is stored in minutes, but I like to display it as hh.mm
So a few of lines of the report might have :
[tt]
John Smith J1234 7.00
X0045 2.30
Will Young J1234 11.00
[/tt]
I have a function Convhrs() which will convert a number of minutes to the display format shown above (e.g. 150 minutes shows as 2.30 - two and a half hours). So the expression for that field on the report is Convhrs(detail.minutes)
That works fine. However I would also like to show subtotals and a grand total on the report. However I know that I cannot specify the total field for time by specifying the field as Convhrs(detail.minutes) and specifying that it has to be calculated as Sum, because the way the reporter then works is to evaluate the individual Convhrs() results - which are character strings - and then try to add them together - which does not work. What I had wanted is to add them up, and then apply the Convhrs() function.
Thanks in advance