Hide a certain group footer

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • carmela_wong@hotmail.com

    Hide a certain group footer

    I am trying to output a report in which I show the total number of
    people if groupfooter is "STAFF" but not if it is "ATTENDEES" . The
    report will say:

    STAFF:
    Staff1.......
    Staff2......
    Total staff members: 2

    ATTENDEES:
    Attendee1.....
    Attendee2....
    Attendee3.....
    Attendee4....

    How do I hide the groupfooter for ATTENDEES? Please help. Thanks a
    lot.
  • paii, Ron

    #2
    Re: Hide a certain group footer


    <carmela_wong@h otmail.comwrote in message
    news:b6a0959c-2430-4f24-b566-f097148009f0@l1 7g2000pri.googl egroups.com...
    I am trying to output a report in which I show the total number of
    people if groupfooter is "STAFF" but not if it is "ATTENDEES" . The
    report will say:
    >
    STAFF:
    Staff1.......
    Staff2......
    Total staff members: 2
    >
    ATTENDEES:
    Attendee1.....
    Attendee2....
    Attendee3.....
    Attendee4....
    >
    How do I hide the groupfooter for ATTENDEES? Please help. Thanks a
    lot.
    In the onFormat event of the groupfooter section, check the value and set
    me.Visible to true of false. The event procedure name is based on the
    section number and not the group name. This numbering can change if you add
    or remove sections causing you program to fail.


    Comment

    • carmela_wong@hotmail.com

      #3
      Re: Hide a certain group footer

      Thanks for replying, Ron. How do I check the value? I cannot seem to
      find the property that gives the value of the group footer, say I had
      a PersonType field which had either STAFF or ATTENDEE. What would I
      check for in the group footer?
      Me.PersonType.? ???

      Thanks again.

      Comment

      • paii, Ron

        #4
        Re: Hide a certain group footer


        <carmela_wong@h otmail.comwrote in message
        news:b78cb9f9-11be-43e7-9d0b-a349d7b17ebc@j1 g2000prb.google groups.com...
        Thanks for replying, Ron. How do I check the value? I cannot seem to
        find the property that gives the value of the group footer, say I had
        a PersonType field which had either STAFF or ATTENDEE. What would I
        check for in the group footer?
        Me.PersonType.? ???
        >
        Thanks again.
        >
        Check the value of the control that group is using. then set the group
        footer's property based on that value.

        if me![PersonType] = "STAFF" then
        Me.Section(4).V isible = False ' Hide section if STAFF
        else
        Me.Section(4).V isible = True ' Show section if Not STAFF
        endif

        Section(4) is generated by the Expression Builder. The value (4) may be
        different for your report and can change if you add or remove sections.


        Comment

        Working...