Results 1 to 4 of 4
  1. #1
    EddieN1 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2011
    Posts
    316

    How to force a new page when sub report exceeds allocated space


    I have a sub report (invoice details) inside a report (invoice header and footer). The sub report is limited to a box on the pre-printed form so I set Can Grow to No. If the lines in the sub report exceed the amount of space allocated to it, it just stops formatting details (or at least I can't see them). I would like it to trigger a new page for the report and then continue printing the sub report on the next page. Any help would be appreciated.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,625
    Does Print Preview show the correct formatting on all pages? What do you mean by 'limited to a box'? What formatting - VBA code? Do you want to provide project for analysis?
    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
    EddieN1 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2011
    Posts
    316
    Yes, the Print Preview shows the formatting correctly on the page. When I refer to a "box", I mean that this invoice is being printed on a pre-printed invoice form. There are several boxes near the top for invoice number, date, name/address, PO number, etc. Then there is a section (the box) that is reserved for the details of the invoice. This is the box that the sub report appears in. Below the box is a place for invoice totals and a disclaimer.

    The sub report prints the details in the box just fine except when there are more details than will fit in the box. When this occurs, I would like the sub report to, somehow, indicate that the main report needs to go to a new page, reprint the header information again, then when it gets to the detail "box", the sub report should pick up where it left off and print more details.

    I don't have any VBA code at this time, but I'm willing to code an event if I could figure out what event fires that says the sub report has filled up the area on the page.

    I appreciate your help. If I'm unclear on anything, let me know and I'll provide more details.

    Eddie

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,625
    Still not able to follow your description. Probably would help to see it if you would provide the project.
    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.

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

Similar Threads

  1. Replies: 8
    Last Post: 08-12-2011, 11:55 AM
  2. Force new page
    By kwooten in forum Reports
    Replies: 1
    Last Post: 07-28-2011, 04:42 PM
  3. Oracle table name exceeds 30 char?
    By workindan in forum Access
    Replies: 0
    Last Post: 12-08-2010, 02:59 PM
  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. Export to RTF is creating white space at end of page
    By Sherri726 in forum Import/Export Data
    Replies: 0
    Last Post: 12-19-2006, 03:24 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