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

Suppress footer based on Sum of Field

Status
Not open for further replies.

kimprogrammer

Programmer
Sep 15, 2008
160
CA
Hello
I created a field in my footer report which is a sum of the amount in the detail. I would like to suppress the footer if the sum amount is less than or equal to 75.

In the footer section the field is named SumofAmount1:Sum of SwipeAccmulativeHours.Amount

I'm not sure what to write as a formula. I've tried but get an error when I save it:
if (SumofAmount1 <= 75) then
false
else
true;
----------------
I've also tried
if Sum(SwipeAccmulativeHours.Amount) <= 75 but that is not it either.

Thanks for the help
 
What footer? If you mean the report footer, go into the section expert->report footer->suppress->x+2 and enter:

sum({SwipeAccmulativeHours.Amount}) <= 75

If you mean a group footer, select the group footer in the section expert->suppress->x+2 and enter:

sum({SwipeAccmulativeHours.Amount},{table.groupfield}) <= 75

-LB
 
I did mean the group footer. I did not know about the table.groupfield.

Thank You - it works great now
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top