Results 1 to 6 of 6
  1. #1
    plengeb is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    20

    Forced New Page In Access Report

    I have an access report where I need to force a new page after a section is finished. However, after the last record is printed, that section forces a final, blank page. Does anyone know of a way to prevent the last forced page if it has encountered the final record? Thank you.



  2. #2
    RayMilhon is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,085
    Yes there is but I haven't used it in a while. Don't remember the exact steps but you have to declare a variable to count the pages in the format event (I believe it's in the detail section but not sure. Then in the print event of the report footer Or the first group footer check the variable against the total pages if they are = then set new page = false. I'll try and find the db I used that in and post the code here later.

  3. #3
    plengeb is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    20
    Thanks Ray. I do appreciate it.

  4. #4
    plengeb is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    20
    I figured out how to renumber the pages as desired. I believe the approach to prevent the page from printing is: If me.page = me.pages then do not print the page, but I still don't know the correct syntax.

  5. #5
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    Quote Originally Posted by plengeb View Post
    I figured out how to renumber the pages as desired. I believe the approach to prevent the page from printing is: If me.page = me.pages then do not print the page, but I still don't know the correct syntax.
    In the Section's On Format event put:
    Code:
        If [Page] = [Pages] Then
            Me.GroupFooter0.ForceNewPage = 0
        End If
    Change GroupFooter0 to the actual name of your section.

  6. #6
    plengeb is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    20
    Thanks Bob. That did the trick.

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

Similar Threads

  1. Page Header & Forced Page Break
    By Donnydon in forum Reports
    Replies: 1
    Last Post: 09-08-2011, 08:24 AM
  2. Replies: 3
    Last Post: 08-07-2011, 09:22 PM
  3. Forced page breaks - I know really something quite simple
    By kw@officeadminsolutions in forum Reports
    Replies: 3
    Last Post: 05-16-2011, 12:17 AM
  4. Page break on report inserts empty page between
    By Galadrielle in forum Reports
    Replies: 0
    Last Post: 07-07-2010, 04:18 AM
  5. Replies: 1
    Last Post: 05-22-2010, 08:30 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