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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sum If Question

Status
Not open for further replies.

ptrifile

Technical User
Aug 10, 2004
457
US
I think I am over thinking this but can't figure it out. I only want to SUM and show a field if it is over a certain amount of seconds. The formula field I am using to currently show this field is:

Code:
WhilePrintingRecords; 
NumberVar TotalSec :=sum({iactivitycodestat.activitytime}, {iActivityCodeStat.Timestamp},"daily");
NumberVar Hours   := Truncate  (Remainder ( TotalSec , 518400) / 3600) ; 
NumberVar Minutes := Truncate  (Remainder ( TotalSec , 3600) / 60) ; 
NumberVar Seconds := Remainder (TotalSec , 60) ;



Totext ( Hours ,   '00' ) +  ':' + 
Totext ( Minutes , '00' ) +  ':' + 
Totext ( Seconds , '00' )

Can someone point me in the right direction?

Thanks in advance!

Paul
 
Please disregard. I solved this by using the Select Expert - Group.

Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top