Results 1 to 4 of 4
  1. #1
    evander is offline Competent Performer
    Windows 7 Access 2003
    Join Date
    Apr 2010
    Location
    Philippines
    Posts
    206

    Toggle Visibility of Group Header/Footer Based on Criteria?

    Hi.

    I'm back! I'm glad to become a member of this site so I can obtain answers for my Access questions.

    The problem is, my Access 2003 code no longer works in 2007:


    Code:
    Private Sub GroupFooter1_Format(Cancel As Integer, FormatCount As Integer)
        If AccountCategoryCode = 9000 Then
            GroupFooter2.Visible = False
        End If
    End Sub
    What this code does is hide the groupfooter2 if I meet a certain condition.
    I don't know how to solve this. Please help. Thanks.

    Jan

  2. #2
    evander is offline Competent Performer
    Windows 7 Access 2003
    Join Date
    Apr 2010
    Location
    Philippines
    Posts
    206
    Sorry for the typo, groupfooter1.visible = false. Still it doesn't work.

  3. #3
    evander is offline Competent Performer
    Windows 7 Access 2003
    Join Date
    Apr 2010
    Location
    Philippines
    Posts
    206
    Okay something weird's going on. This is in Access 2007. When I view the report in "Preview" mode, the report sections gets nicely hidden. But when I view the report in "Report" mode, all sections are displayed, even though the report fields meet a certain criteria to hide these sections.

  4. #4
    evander is offline Competent Performer
    Windows 7 Access 2003
    Join Date
    Apr 2010
    Location
    Philippines
    Posts
    206
    Allen Browne says, "The events of the report's sections do not fire in this view."
    What the crap

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

Similar Threads

  1. Visibility based on Combo selection
    By jlclark4 in forum Forms
    Replies: 1
    Last Post: 12-22-2010, 11:42 AM
  2. Calculation in a group footer.
    By stupesek in forum Reports
    Replies: 11
    Last Post: 09-29-2010, 07:30 AM
  3. Trouble Summarizing in Group Footer
    By Millerguitarworks in forum Reports
    Replies: 2
    Last Post: 12-07-2009, 06:06 AM
  4. columns for group detail but not group header?
    By Coolpapabell in forum Reports
    Replies: 0
    Last Post: 08-21-2009, 08:53 AM
  5. Totaling a value in group footer...
    By hodgy20 in forum Reports
    Replies: 0
    Last Post: 11-14-2008, 08:28 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