473,785 Members | 2,297 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4570

<ca**********@h otmail.comwrote in message
news:b6******** *************** ***********@l17 g2000pri.google groups.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**********@h otmail.comwrote in message
news:b7******** *************** ***********@j1g 2000prb.googleg roups.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.
Jun 27 '08 #4

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

Similar topics

9
33474
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 between BLOCK and NONE. This technique works on normal text fine, but it doesn't work on part of the table, is there a solution that I can achieve the goal of turning on/off several rows all together? Thanks.
1
12421
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 chosen (i.e. the title changes to say "Sorted by Name" or "Sorted by Field"). For one of the options, "Sort by Field" I would not only like to have them sorted by Field alphabetically, but I would like to Group them and have a Group Header and...
2
7156
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 summary of money for all groups the report footer. When there is at least one record with money >0, group and report footers are appropriate and look OK. When all records are with 0 money, footers look silly. I’d like not to print them. I have placed...
0
1380
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 on the By group footer. I tried to create a group header each for the supplier and suppliermodel fields. Add a text box each in the group header: Name: txtSupplier or txtSupplierModel Control Source: =1
0
1665
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 group header also. The subreport in the group footer is based on a query. I have code in the group header that runs a function whose value becomes part of the criteria in the query for the subreport in the group footer. The value of the function...
7
4544
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 know how to count the groups, then hide the report footer if there's only one group, but my problem is I want to hide the group footer (sub-total), not the report footer (because the report footer references what the grand total is for, which is...
0
6233
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 expression (where the problem lies): =SUM(Fields!GrossGoal1.Value, "CustomerNumber_Grp") The GrossGoal1 group field that I'm trying to reference right above it in the same table column has: =((Fields!FeeGoal.Value) / Fields!FeeSchedule.Value)...
2
3421
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 own page (one page has hardware, one has software, one if necessary has the printers...not every machine has a printer). The subreport is contained within a group footer, which by default has ForceNewPage set to "None" and Visible set to "Yes".
0
2717
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 row. I would like to display the footer row, only when a LinkButton "Add New" is clicked. And after the new record is saved to the database, let the footer row disappear. In the LinkButton's click event handler, I simply say:
0
10356
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10162
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8988
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7509
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6744
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5396
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5528
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2893
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.