Results 1 to 5 of 5
  1. #1
    kristyspdx is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Nov 2011
    Posts
    23

    Group Headers Not Repeating in a Report

    Hello,

    I have a report in which I am using VBA script to hide rows with null values. (See attached). When I add this script, some of my group headers are not repeating at the top of every page of the report even though the "Repeat Section" field in the Format Tab is set to "Yes." If I remove the VBA script, all of my headings repeat at the top of each page as I'd like, but then blank lines, of course, appear for those rows that have null values which is not what I want either. Anyone have an idea on how to fix this?

    Thanks.

  2. #2
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    See if changing to this works better:
    Code:
    Option Compare Database
     
    Private Sub GroupHeader2_Format(Cancel As Integer, FormatCount As Integer)
        Me.GroupHeader2.Visible =  (Not IsNull(Me.Division_Supergroup))
    End Sub
     
    Private Sub GroupHeader3_Format(Cancel As Integer, FormatCount As Integer)
        Me.GroupHeader3.Visible = (Not IsNull(Me.AccessTotalsBalance__Deficit__End1))
    End Sub
     
    Private Sub GroupHeader4_Format(Cancel As Integer, FormatCount As Integer)
         Me.GroupHeader4.Visible = (Not IsNull(Me.AccessTotalsBalance__Deficit__End))
    End Sub
     
    Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
        Me.Detail.Visible = (Abs(Me.[Balance (Deficit) End]) >= 1)
    End Sub

  3. #3
    kristyspdx is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Nov 2011
    Posts
    23
    Same result unfortunately.

  4. #4
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    Can you post a copy of your database (with bogus info in it of course)?

  5. #5
    kristyspdx is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Nov 2011
    Posts
    23
    Hopefully you can get what you need from this. I had to cut the database down a ton in order to get it small enough to attach.

    So the problem is, if you click on the report and click Print Preview, notice pages 1-5 repeat the headings at the top as follows: Award type of "Endowment," Group 1 of "UC Schools"; Group 2 of "College of Arts & Science", "School of Engineering", "Business School", etc. When you get to page 6 in Print Preview the Award type has changed to "Gifts" Group 1 "UC Schools" repeats, but the Group 2s--the names of the various schools do not repeat.

    Thanks.

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

Similar Threads

  1. Report Headers
    By BigCat in forum Reports
    Replies: 1
    Last Post: 06-21-2011, 09:38 AM
  2. Headers in Report View
    By EES in forum Reports
    Replies: 1
    Last Post: 06-08-2011, 04:22 PM
  3. Repeating Sections in Report (Combo Boxes)
    By bburton in forum Access
    Replies: 1
    Last Post: 02-23-2011, 04:50 PM
  4. Too many page headers for one report?
    By Swilliams987 in forum Reports
    Replies: 0
    Last Post: 02-14-2011, 11:36 AM
  5. Hide Duplicates with Group Headers
    By diwin in forum Reports
    Replies: 0
    Last Post: 03-26-2009, 09:32 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