473,396 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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.
Jun 27 '08 #1
3 4541

<ca**********@hotmail.comwrote in message
news:b6**********************************@l17g2000 pri.googlegroups.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.
Jun 27 '08 #2
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.

Jun 27 '08 #3

<ca**********@hotmail.comwrote in message
news:b7**********************************@j1g2000p rb.googlegroups.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).Visible = False ' Hide section if STAFF
else
Me.Section(4).Visible = 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.
Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Wang, Jay | last post by:
I try to group several rows in a table into a div and show/hide them by click on a button somewhere with a javascript link. When clicked, the link will toggle the style of the div section's style...
1
by: Shiz | last post by:
I currently have a Form with Option buttons (to give you the option of sorting by name, or by Field, etc), these are referenced in a module which then formats the report contingent on the option...
2
by: Galina | last post by:
Hello I have a report, which lists records. Each record has money paid field. Money paid can be 0 or not 0. I calculate and print summary of money for a group in the group footer, as well as...
0
by: Ray | last post by:
By - Ascending - Group Header & Footer supplier - Ascending - Group Header only SuppliersModel - Ascending - Group Header & Footer I need to count distinct numbers of supplier and supplier model...
0
by: Melissa | last post by:
I have a grouped report with a subreport in the group footer. The report is set to start a new page for each group. All the labels for fields are in the group header and there is a subreport in the...
7
by: Darin | last post by:
I have a report that sub-totals on a group, then grand-totals at the report footer. If there's only one group, the sub-total and grand total are redundant, so I only want to show one of them. I...
0
by: dba123 | last post by:
THERE HAS TO BE A SOLUTION FOR THIS!!!! How can I get around the limitation in SSRS 2005 of being able to SUM a Group referenced field in my FOOTER!!! It's driving me nuts My footer field's...
2
by: SEFL | last post by:
Hi there, I've got a code sample below from a report from a computer database that I have built with a printer subtable, which in turn generates a printer subreport that I'm trying to put on its...
0
by: gnewsgroup | last post by:
Well, I am trying to use the footer row of a GridView for insertion purpose. There are some articles about this, for example, the gridviewguy.com has an example, which always displays the footer...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.