Results 1 to 6 of 6
  1. #1
    bbrazeau is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Sep 2011
    Posts
    101

    Page break if section won't fit entirely on page

    I have a report that tracks time spent on jobs. The report has a section for each job# and a footer for each job# where the hours for each entry for that job are sumed. When the amount of line items in the section will not fit on the current page I would like to insert a page break and move the entire section to the next page, but if the section will fit on the current page I would like it to just print on the curent page. I know how to force a page break for every Job#section, but many times there will be only 1 or 2 entries for a particular job during a pay period. It seems a waste to get every Job by its self on a page if in some instances 5 or 6 would fit on 1 page. Is there a way to force a page break, but only if the section won't fit completly on the current page?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,630
    I am not sure if this is what you want but group sections have a KeepTogether property. I've never investigated it.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    bbrazeau is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Sep 2011
    Posts
    101

    Page break if section won't fit entirely on page

    Hi June7, Thanks for your response. I have tried "Keep together" does not work. See attached pdf "Time1". I added an extra false entry to make sure a section was going to be partially on 1 page and partially on another as you can see.
    Attached Files Attached Files

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,630
    According to this http://office.microsoft.com/en-us/ac...005187363.aspx should work. Otherwise, doubt can be done. Even if code could manage it would be so complicated. The code would involve counting lines of print. And if there are any variable length fields and textboxes allowed to grow ... need a crystal ball!
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    bbrazeau is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Sep 2011
    Posts
    101
    Hi June7, My bad. I was trying to set the keep together property through the Property sheet pane of the section of the report. This setting, as best I can figure, merely turns the option to use "Keep together" on or off. To actually apply it to a section you group the section, then use "Grouping and Totals" section under the "Design" tab, click "more" arrow for the group and you have the options of " do not keep group together on one page","keep whole group together on one page", and "keep header and 1st record together on one page".

  6. #6
    paddymx is offline Advanced Beginner
    Windows 7 64bit Access 2003
    Join Date
    Jan 2012
    Posts
    44
    Quote Originally Posted by bbrazeau View Post
    Hi June7, My bad. I was trying to set the keep together property through the Property sheet pane of the section of the report. This setting, as best I can figure, merely turns the option to use "Keep together" on or off. To actually apply it to a section you group the section, then use "Grouping and Totals" section under the "Design" tab, click "more" arrow for the group and you have the options of " do not keep group together on one page","keep whole group together on one page", and "keep header and 1st record together on one page".
    I am using 2003 and mine is "sorting and grouping". in the properties of the header select "repeat section" along with the keep together property. My detail continues over two pages and a "header" is printed on the second page of the continued Detail.

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

Similar Threads

  1. Page break
    By remigio in forum Forms
    Replies: 2
    Last Post: 08-23-2012, 07:59 AM
  2. Page Header & Forced Page Break
    By Donnydon in forum Reports
    Replies: 1
    Last Post: 09-08-2011, 08:24 AM
  3. Page Break at end of Details section
    By noweyout in forum Reports
    Replies: 3
    Last Post: 04-21-2011, 12:02 PM
  4. Page Break after foot, but not for last section
    By thestappa in forum Reports
    Replies: 0
    Last Post: 11-24-2010, 03:31 PM
  5. Page break on report inserts empty page between
    By Galadrielle in forum Reports
    Replies: 0
    Last Post: 07-07-2010, 04:18 AM

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