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

How to print the number of groups in page footer

Status
Not open for further replies.

mkrausnick

Programmer
Apr 2, 2002
766
US
This has probably been answered but search appears to not be working right now. How can I print in the page footer the number of groups that appear on each page?

Thanks,

Mike Krausnick
Dublin, California
 
I'm not sure if this is the simplest way, but here's what I did that worked:

1) Create a report variable r_GroupCount with this formula in the 'Value to Store':
Code:
iif(GroupId <> r_LastGroupId,1,0)
InitialvValue 0, reset on page break, calc type sum.

2) Create a second report variable r_LastGroupId with this formula in the Value to Store:
Code:
GroupId
Initial value 0, reset on report, calc type none

3) Place r_GroupCount in the page footer

Mike Krausnick
Dublin, California
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top