>Well, in that case, what I need is a way to calculate a page total for the data grouping. It's irrelevant to tell someone their 2-page report is "Page 1 of 2317" and "Page 2 of 2317". When distributing the printed output, we need a way to know we've reached the end of a data grouping.
Sergey and I were both wrong (I'm blaming mine on a blonde moment!). There's no bug .. it's behaving as expected. _PageTotal represents the total number of pages of the report .. however .. if you have told it to reset the page number for each data group, it also resets _PageTotal each time it resets _PageNo. When the report processes the second pass to create the output .. the value of _PageTotal is just left at whatever the last _PageNo was .. which means it ends up being the total number of pages of the LAST data group processed on the report.
If you are using VFP 9 SP2, there is a way to get the totals you want. I described it a while back on message #
1321284.