Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get Number of Pages

Status
Not open for further replies.

Rjc8513

Technical User
Feb 12, 2001
140
US
I am using DoCmd.OpenReport "rpt MY REPORT" to print a report from the OnClick event. The report varies in size and runs anywhere from 100 to over 600 pages.

Is there a way to find out the number of pages that will be printed BEFORE it actually prints? I would like to display the page count in a message box and then let the user decide whether or not to print.

Thanks.
 
Perhaps this will suffice ?
DoCmd.OpenReport "rpt MY REPORT", acViewPreview

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top