Results 1 to 2 of 2
  1. #1
    pockets337 is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2017
    Posts
    1

    Access Reports with SubReports Blank Pages

    Hello,

    I am designing a report that has 7 separate subreports that will populate based on whether there is information in its category or not. If the subreport has no information relevant to it, it will appear blank. However, I need each subreport to be on a different page so I put page breaks between all of them. The problem I am having is that each report for a customer only requires 1-4 subreports, so the other subreports that have no information are still displaying blank, but they populate a blank page when I print.

    Does anyone know how I can solve this issue? It is not an issue with the size of the report/subreport being on multiple pages, my margins have been adjusted properly. I am capable of some visual basic programming if that is a solution.

    I found a code that looks like:

    If Me.[subreport].Report.HasData = False Then


    Me.PageBreak.Visible = False
    End If

    But I'm not sure where I would put the code in. I'm not sure if it would work or not but any input that you have would be helpful.

    Thanks,

    Ryan

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,441
    I think you can set the 'visible' property of the page break character (even though you can't see it in the properties window) to 'NO' if you do a record count on the query driving the subreport and it's zero.

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

Similar Threads

  1. Prevent Blank Subreports (possible solution)
    By gopherking in forum Reports
    Replies: 0
    Last Post: 10-18-2011, 11:18 AM
  2. Printing reports without blank subreports.
    By mnsemple83 in forum Reports
    Replies: 2
    Last Post: 08-24-2011, 01:35 PM
  3. Blank Pages in my Reports
    By bkvisler in forum Reports
    Replies: 2
    Last Post: 08-21-2011, 03:15 PM
  4. Blank pages between report pages
    By jonsuns7 in forum Reports
    Replies: 2
    Last Post: 10-01-2009, 05:06 AM
  5. REPORTS BLANK PAGES/I can't remember
    By SpotoR1 in forum Reports
    Replies: 0
    Last Post: 03-03-2009, 07:28 AM

Tags for this Thread

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