page number

  • Thread starter Thread starter Bart Schelkens
  • Start date Start date
B

Bart Schelkens

Hi,

I have a report that I need to group.
When a new group starts I need to start a new page.

This works fine.
The only problem now is that whenever I start a new group, I need to restart
counting my pages from 1.
So for instance if my first group has 2 pages it should show 1/2 and 2/2.
and then start the new group again from page 1.

How can I do this?

Thanks in advance.
 
Thx for the info,

I've tried it but when I have 2 pages it displays 1/1 on the first page and
2/2 on the second page.
I'm looking for a way to write 1/2 on the first and 2/2 on the second page.
 
Thx for the info,

I've tried it but when I have 2 pages it displays 1/1 on the first page and
2/2 on the second page.
I'm looking for a way to write 1/2 on the first and 2/2 on the second page.

That code does work.
If .....
you have followed this instruction ...
*** Note: the line Me!Salesperson should be changed to the control
name of the group you wish to track pages for.

and this one ...

Me!ctlGrpPages is the name of a control you should place in the page
footer.

(Note... the NAME of the control in the report footer should be
GrpPages, not Me!GrpPages. In the code, the reference to Me!GrpPages
is correct.)

and you have added a control to the report to calculate Pages,
i.e. = [Pages] . This control can be not visible if you wish.
 
I didn't say the code didn't work.
It prints the pagenumbers, it just doesn't print them the way I would like.

fredg said:
Thx for the info,

I've tried it but when I have 2 pages it displays 1/1 on the first page and
2/2 on the second page.
I'm looking for a way to write 1/2 on the first and 2/2 on the second page.

That code does work.
If .....
you have followed this instruction ...
*** Note: the line Me!Salesperson should be changed to the control
name of the group you wish to track pages for.

and this one ...

Me!ctlGrpPages is the name of a control you should place in the page
footer.

(Note... the NAME of the control in the report footer should be
GrpPages, not Me!GrpPages. In the code, the reference to Me!GrpPages
is correct.)

and you have added a control to the report to calculate Pages,
i.e. = [Pages] . This control can be not visible if you wish.
 
Back
Top