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

Group footer problem

Status
Not open for further replies.

UnknownProgrammer

Programmer
Feb 28, 2005
12
US
I have a problem when I have 2 group footers.
I need each group-footer-2 to invoke "new page after" unless it is the last group-footer-2 printed. When it is the last group-footer-2 I need the group-footer-1 to print on the same page and then invoke "new page after" (only in this case). FYI.. group-footer-1 also invokes "reset page number after".

Any help is appreciated.
 
It sounds like you want to leverage the onlastrecord function to determine if the group footer 2 is on the last page.

The GF2 new page after formula should be:

not(onlastrecord)

The GF1 new page after formula should be:

onlastrecord

-k
 
Create a running total {#grp2cnt} using the expert that counts the group #2 field, evaluates on change of group #2, and resets on change of group #1. Then go to the section expert->group #2 footer->new page after->x+2 and enter:

{#grp2cnt} <> distinctcount({table.group2field},{table.group1field})

Or, now that I think of it, I think you could add this formula instead:

{table.group1field} = next({table.group1field})

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top