>>You need to send the report to a file first, then check _PAGENO. This will be the total number of pages.
>
>Sounds like NUL would be a good filename to send to...
Why send it to a file at all? Sending it nowhere (defaulting to the screen) with the NOCONSOLE clause will produce the same results without the overhead of writing a file to the disk.
kenweber
GCom2 Solutions
Microsoft Certified Professional