What VFP version are you using? What do you need _PAGETOTAL for?
>I'm trying to get the correct page total of a report without previewing it so I executed REPORT FORM (reportname) NOCONSOLE this command updated the _pagetotal system variable to 38 pages without previewing the report.
>
>The problem is if I try to preview the report, it contains 41 pages. After previewing, it updates the _pagetotal to 41.
>
>Is there a way to get the correct _pagetotal without previewing?
--sb--