Christian,
Why not add a variable for the pages you PRINT, instead of _pageno. This can be re-set to 1 at each group. Then leave _pageno to its default value so it shows the correct number of total pages.
HTH
Barbara
>Hello,
>I'm working on a Report (vfp 6) and normally it is no problem to determine the total number of pages, which is the last _pageno.
>
>But in this case, I have to reset the _pageno to 1 for each group.
>I tried to make a count-procedure in the OnEnter-PageHeader, where I supposed the report enters one time for each page. But the summary of this count was like the number of details.
>
>(The 'title' band is entered two times for each report, I found out.)
>
>Any ideas from you?
>Thank's for your time.