The way UT people always suggest is to run the report once to a file (use 'NUL' so it doesn't clutter up your hard disk). Then record the total pages with _pageno and use that for the "Y" in Page X of Y.
Barbara
>M$ link:
>
http://support.microsoft.com/support/kb/articles/Q276/5/01.asp?sd=msdn>
>SUMMARY
>
> PageOf.exe contains a sample Visual FoxPro report that sets a "page # of #" counter.
> To generate the counter, the report dynamically calculates how many lines are used on
> the detail line to accommodate the fields. The records on the table are divided by the
> amount of detail lines and then used to generate the counter.
>
>
>
>but it really out of the discussion on memo expansion, how out-dated.