473,881 Members | 1,718 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Counting group records

BJ
Can anyone tell me how to include a count of group records in a group
footer. I know (I think I know!) that I have to include an unbound text box
in the footer, but what expressions do I use to count the entries within a
group (subtotals I suppose).

eg: the column (group) headings are something like this:

Area Surname
London Smith
Giles
Davis
Harris

Total : = total number of surname entries

Manchester Jones
Jarvis
Coffey

Total : = total number of surname entries

What do I do to automatically count the "total number of entries" ?

Advice very welcome - Access isn't easy is it ?

K

Nov 13 '05 #1
4 1898
TextBox ControlSource: =Count(*)
--
MGFoster:::mgf0 0 <at> earthlink <decimal-point> net
Oakland, CA (USA)

BJ wrote:
Can anyone tell me how to include a count of group records in a group
footer. I know (I think I know!) that I have to include an unbound text box
in the footer, but what expressions do I use to count the entries within a
group (subtotals I suppose).

eg: the column (group) headings are something like this:

Area Surname
London Smith
Giles
Davis
Harris

Total : = total number of surname entries

Manchester Jones
Jarvis
Coffey

Total : = total number of surname entries
What do I do to automatically count the "total number of entries" ?
Advice very welcome - Access isn't easy is it ?

Nov 13 '05 #2
BJ
Many Thanks for your reply and help.
In this instance, if I want to count the number of entries under "surname",
I presume that the "Control Source" is "Surname" . I had inerted : =Count
but the only this that appeared was the first entry (eg Smith) rather than a
number. What function does the (*) serve?

Thanks
K
"MGFoster" <me@privacy.com > wrote in message
news:oR******** *********@newsr ead3.news.pas.e arthlink.net...
TextBox ControlSource: =Count(*)
--
MGFoster:::mgf0 0 <at> earthlink <decimal-point> net
Oakland, CA (USA)

BJ wrote:
Can anyone tell me how to include a count of group records in a group
footer. I know (I think I know!) that I have to include an unbound text box in the footer, but what expressions do I use to count the entries within a group (subtotals I suppose).

eg: the column (group) headings are something like this:

Area Surname
London Smith
Giles
Davis
Harris

Total : = total number of surname entries

Manchester Jones
Jarvis
Coffey

Total : = total number of surname entries
What do I do to automatically count the "total number of entries" ?
Advice very welcome - Access isn't easy is it ?

Nov 13 '05 #3
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sorry, for the abrupt response. What I meant was: Place an unbound
TextBox in the Group Footer. Set its ControlSource to =Count(*). This
will count all rows in the Details section. IOW, you're grouping by the
Area w/ Surnames in the Detail section. After the break between groups
(the group footer) a Count(*) will count all rows (Surnames) produced
for that grouping.
--
MGFoster:::mgf0 0 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQlehiYechKq OuFEgEQLGcQCg5J xShuzdJDSKsBPt8 vOeiC4A/WUAoNTq
tty9EC1oR0iO+xW vpQEGpU7D
=G/th
-----END PGP SIGNATURE-----

BJ wrote:
Many Thanks for your reply and help.
In this instance, if I want to count the number of entries under "surname",
I presume that the "Control Source" is "Surname" . I had inerted : =Count
but the only this that appeared was the first entry (eg Smith) rather than a
number. What function does the (*) serve?

Thanks
K
"MGFoster" <me@privacy.com > wrote in message
news:oR******** *********@newsr ead3.news.pas.e arthlink.net...
TextBox ControlSource: =Count(*)
--
MGFoster:::mg f00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

BJ wrote:
Can anyone tell me how to include a count of group records in a group
footer. I know (I think I know!) that I have to include an unbound text
box
in the footer, but what expressions do I use to count the entries within
a
group (subtotals I suppose).

eg: the column (group) headings are something like this:

Area Surname
London Smith
Giles
Davis
Harris

Total : = total number of surname entries

Manchester Jones
Jarvis
Coffey

Total : = total number of surname entries
What do I do to automatically count the "total number of entries" ?
Advice very welcome - Access isn't easy is it ?


Nov 13 '05 #4
BJ
Many thanks again !

That did the trick

K
"MGFoster" <me@privacy.com > wrote in message
news:8k******** *********@newsr ead1.news.pas.e arthlink.net...
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sorry, for the abrupt response. What I meant was: Place an unbound
TextBox in the Group Footer. Set its ControlSource to =Count(*). This
will count all rows in the Details section. IOW, you're grouping by the
Area w/ Surnames in the Detail section. After the break between groups
(the group footer) a Count(*) will count all rows (Surnames) produced
for that grouping.
--
MGFoster:::mgf0 0 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQlehiYechKq OuFEgEQLGcQCg5J xShuzdJDSKsBPt8 vOeiC4A/WUAoNTq
tty9EC1oR0iO+xW vpQEGpU7D
=G/th
-----END PGP SIGNATURE-----

BJ wrote:
Many Thanks for your reply and help.
In this instance, if I want to count the number of entries under "surname", I presume that the "Control Source" is "Surname" . I had inerted : =Count but the only this that appeared was the first entry (eg Smith) rather than a number. What function does the (*) serve?

Thanks
K
"MGFoster" <me@privacy.com > wrote in message
news:oR******** *********@newsr ead3.news.pas.e arthlink.net...
TextBox ControlSource: =Count(*)
--
MGFoster:::mg f00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

BJ wrote:

Can anyone tell me how to include a count of group records in a group
footer. I know (I think I know!) that I have to include an unbound text


box
in the footer, but what expressions do I use to count the entries
within
a
group (subtotals I suppose).

eg: the column (group) headings are something like this:

Area Surname
London Smith
Giles
Davis
Harris

Total : = total number of surname entries

Manchester Jones
Jarvis
Coffey

Total : = total number of surname entries
What do I do to automatically count the "total number of entries" ?
Advice very welcome - Access isn't easy is it ?


Nov 13 '05 #5

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

Similar topics

2
1472
by: bryanilton | last post by:
Hi, I'm new to PHP and I have a question that I think has a simple answer but I just can't figure it out so I'm really hoping that one of you gurus can help me out. I'm trying to return data from mysql database. I have over a thousand records and each record has a "type" field with values ranging from 1 to 9.
16
1742
by: walexand | last post by:
I use the database mysql v.4. My problem is... I have a select like: select * from user where language = "de"; the result are then: id name =================== 1 max
7
1263
by: C White | last post by:
A little while back I had a question about counting records and my example was something like this: in my database table i have the following records john ed john rick tom
2
2090
by: N. Graves | last post by:
I have a table with records of games played with a field for players name and another fields is a "WinorLose". One player may play several games to complete a match. I want my report to tell me how many Wins or Loses and Individual has in a match.. I'm not having a problem getting the reports and the grouping it by person but I'm having a problem with the logic of counting and display number of Wins and number of Loses. Is there...
2
2310
by: BlackFireNova | last post by:
I have an Access 2003 mdb which contains software records. I need to sort on a particular type of software, and then identify and count how many copies there are per each group of that type purchased on the same date. I have no trouble doing a query to extract the type (say MS Excel 2002, for example). The trouble is, there could be 50 copies purchased on date "x", 80 copies purchased on date "y", and 250 copies purchased on date "z",...
1
2835
by: mjobrien | last post by:
Thanks for the hint Allen (see below). But I am already doing that count as total records read (5)in the report footer. That count is unduplicated for the record not for the field - student ID as I've indicated in my sample report. I really need an unduplicated count of the student ID only. I guess my subject was not clear. ------------------------------------------------------------------------------ From: Allen Browne...
5
1828
by: chrisc | last post by:
Hello, Hope this is the right place for this... I am creating a testing database for components as they come off a production line. My reports need to select faults that are found, as well as pass or fails dependent on a batch number.
18
2955
by: ChadDiesel | last post by:
I appreciate the help on this group. I know I've posted a lot here the last couple of weeks, but I was thrown into a database project at my work with very little Access experience. No other employee knows anything about Access. I've searched Google Groups, and that has been a lot of help, but there are some questions that I just can't find the answer to. I'll try to take it easy on the group after this question. I have one more...
8
1710
by: johnds | last post by:
This is my third question about eliminating accounting entries in a clinical database, yet retaining the valid record. Latest wrinkle is being able to sum the visits to the doctor, and the units of services received. The units cannot be less than the visits, you get a least one unit per visit. Here's the problem: If a visit is wrongly coded, then a reverse entry is made as follows. PTID CODE UNITS 1 100 ...
0
9930
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11103
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
10720
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...
1
10819
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10403
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9555
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
7953
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
5781
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...
1
4597
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.