Results 1 to 5 of 5
  1. #1
    cfrankling is offline Novice
    Windows 10 Office 365
    Join Date
    Aug 2021
    Posts
    11

    Question Reports: Is current page last page?

    Hi there,



    Is there a way to know if the current page being printed is the last page when generating a report?

    I'm trying to hide/show info within Report Footer but want to show it only in the last page.


    Thanks in advance
    Carlos

  2. #2
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,205
    Normally you would use Page # of Pages. Access knows the total number of pages by doing a dummy run first
    Not sure why anyone would want to hide that except for on the last page but it would require an extra step.
    I'm sure you could do so using VBA but it would likely have a negative effect in terms of performance, especially for reports with many pages.
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

  3. #3
    Join Date
    Apr 2017
    Posts
    1,793
    Why don't you use report footer instead of page footers then?

  4. #4
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,425
    I'm trying to hide/show info within Report Footer but want to show it only in the last page.
    By definition, a report footer only shows on the last page. You must be using a page footer as was suggested.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  5. #5
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,205
    Good point about using the Report Footer instead of the Page Footer. I've checked and it still shows Page # of [Pages] correctly.
    The only issue is that it won't necessarily be at the bottom of the last page - just wherever the report ends.

    However, I still don't see why you want to hide that information on other pages
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 08-26-2019, 05:40 PM
  2. Replies: 0
    Last Post: 04-15-2016, 08:08 AM
  3. Replies: 1
    Last Post: 11-01-2013, 11:53 AM
  4. Replies: 2
    Last Post: 10-15-2013, 09:30 AM
  5. Replies: 0
    Last Post: 02-11-2009, 06:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums