Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Speedy way to get total number of pages in a report?

Speedy way to get total number of pages in a report?

Speedy way to get total number of pages in a report?

I have a report with a sub report and historically the subreport has only been 1 page so I have been able to use a record count to give me the total number of pages in the page.. of .. footer.

Some of the subreports are now stretching to 2 pages so using the above means I can get page 64 of 58 which is no good.

If I use =[pages] to get the total number of pages then typically a 62 page report takes 35 seconds to load. If I delete the =[pages] text box the report loads in 2 seconds.

Is there a speedy way to get a total number of pages when using subreports?

RE: Speedy way to get total number of pages in a report?

In case any one else is suffering this issue I have found a work round by basing the report and the sub reports on temporary tables. On opening the report I use SQL to populate the 7 tables and the report now loads in about 4 seconds and I am using =[pages] so the page count is correct.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close