Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Grand total for times 2

Status
Not open for further replies.

willpp

MIS
Joined
Feb 12, 2010
Messages
7
Location
GB
got this working and it puts all durations into Hour and minutes so this sorts the first part but then i want to add a grand total for hours and minutes any help would be grateful

First part of formula
local numbervar Hr := Truncate({ADCONT.Duration}/60);
local numbervar Mn := Remainder({ADCONT.Duration},60);
Totext(Hr,0) + "Hr " + ToText(Mn,0) + "m"

 
Hi,
Maybe place the Hr and the Mn variables in the report in addition to your formatted formula result - you can supress their display - and then insert a Summary ( Grand Total) for each.



[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
You need to insert a sum on {ADCONT.Duration} directly and then convert it to the string. Please see faq767-3543 for a method for conversion, and use sum({ADCONT.Duration}) for the "dur" variable.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top