473,396 Members | 1,726 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.

Summary at report header

68 64KB
I have developed an Access database with report that depends on list of teachers showing their genders (male & female). I would like to include in the report header, a summary dis aggregation of the gender.
This is what I have but not working:

=count([strGender]="Male")

Can anyone assist with this?
Aug 1 '12 #1
8 1717
twinnyfo
3,653 Expert Mod 2GB
Stoic,

I think you should use the DCount function. Syntax would be:

=DCount("*","TableName","[strGender] = 'Male'")

That should do the trick.1
Aug 1 '12 #2
Stoic
68 64KB
Thanks twinnyfo, that did it.
Aug 1 '12 #3
Stoic
68 64KB
A followup to this. Is it possible to dis aggregate the gender by county or section instead of general record?
Thanks
Aug 1 '12 #4
twinnyfo
3,653 Expert Mod 2GB
You would just adjust the Dcount syntax based on where in the report it falls:

=DCount("*","TableName","[strGender] = 'Male'" & " AND [strCounty] = '" & [txtCounty] & "' AND [strSection] = '" & [txtSection] & "'")

You just have to be careful with syntax for strings and numbers. In the example above, the DCount is dependent upon text fields on the form. Play with it to make it suit your purposes exactly.

Let me know how this works.
Aug 1 '12 #5
Stoic
68 64KB
Thanks twinnyfo, but this didn't work for what I am wanting to have. My table name is tblTeachersProfile with the fields strCounty, strDistrict and strGender; and my report have sections that list the schools by county and district. At each county heading, I would like to show the number of male teachers and female teachers. Is that possible?
Best,
Aug 2 '12 #6
twinnyfo
3,653 Expert Mod 2GB
Stoic,

First, a few notes about Database normalization. I don't know what your tables look like, but I have assumed their mechanics based on your descriptions.

First, if you have several counties that your teachers can work in, you should have a separate table for counties. Then, your "County" is actually a number, refering to the primary key of that table. The same goes with your districts. When you add a teacher, you should have a form that allows you to select the county and then queries the recordset for the District dropdown based on the county, so that you can only select districts that reside in a particular county. Believe it or not, I would also create a table for Gender, two fields: GenderID, and Gender; and two records: 1, Male; 2, Female.

I've included my concept in the attachment, which aligns itself with your field names. It shows a very basic report that counts gender over the County Group. If you had a separate Group for each District, you could do this, too, just modify the control source for the Gender text box in each header.

Hope this info will help!
Aug 2 '12 #7
Stoic
68 64KB
Sorry twinnyfo, I did not see the attachment you spoke about. That might be very helpful. Please send me the attachment. I am sure I can handle myself with your concept. I do have separate tables for county, district, and even gender except that the gender does not have code attached to it, but the others do.
Thanks
Aug 15 '12 #8
twinnyfo
3,653 Expert Mod 2GB
Not sure why this did not attach last time......
Attached Files
File Type: zip Teachers.zip (24.9 KB, 67 views)
Aug 15 '12 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

14
by: expertware | last post by:
Ok! to avoid confusion I will start a new argument. Thanks!! FIREFOX 1.0.7 AND IE6 viewed through DATATIME: a summary REPORT ===============================================================...
1
by: Roger | last post by:
I couldn't find anything at http://www.mvps.org/access/reports/index.html I have a report with static (name, address, etc) in its report header and a subreport in the report's detail section ...
3
by: Grim Reaper | last post by:
I know this is probably an easy question, but I could not find/figure it out. Basically, I am printing mailing labels with a "Sorting/Grouping" section that groups the label types together....
2
by: neill dumont | last post by:
I've tried to be clear, but this still seems overly complex to me, but here goes: I have a report in front of an aggregate query. I have a single subreport based on the same query for both a...
1
by: josecruz | last post by:
I have to create a summary report that will provide counts and # average of days for multiple "Status" by entering different dates for every criteria. I have created several queries that calculates...
1
by: kamalis14 | last post by:
I am trying to create a summary report that will be run monthly for Clients. I just cant seem to work it out. Each client can order 3 types of products. Each type consists of product codes describing...
1
by: cgiscri | last post by:
Hello, I need to create a report summary that displays data from 8 individual reports. The control source for each individual report is a distinct query. I am currently using an unbound report...
0
by: Lukas | last post by:
Hello I would like to place a "Page Header"-Section before a "Report header"- Section: {Page header} Logo...
0
by: Bre035 | last post by:
I have attempted to create several summary reports in Access for a 7 Day or Week timeframe. However, in all my prior databases we allow the user to enter the Start and End Date. This will not work...
4
by: slenish | last post by:
Hi, Im having some trouble creating a report to print data off of my table. I want to create a summary report that will take a group of numbers and total them up. I have tried using the general...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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,...

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.