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!

Resetting &Pages after group

Status
Not open for further replies.

Leeeon

Programmer
Mar 24, 2003
19
0
0
GB
I have a report that prints information grouped on different departments. At the bottom of each page I have the standard 'Page 1 of 20' footer using &Page and &Pages.

For each group I would like to be able to print the number of pages for just that group and then reset it for the next group eg

For a 15 page report, first group may be pages 1-4 so I want 1 of 4, 2 of 4 etc printed. Second group may be pages 5-15, so I want 1 of 11, 2 of 11 etc.

I can reset the &Page number by putting Page = 1 in the OnFormat event but can't figure out how to get the &Pages values.

Thanks

LeonH
 
Cheers. That worked perfectly.

LeonH
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top