Hi Kevin,
If I understand you correctly then I think this will do what you need:
Put a textbox in the group header with a controlsource of =1 and RunningSum set to OverGroup. You can set its visible property to False if you don’t want a running total shown in the report. Then in the report footer add a textbox with a controlsource of =textbox1 (where textbox1 is the name of the running sum textbox). This will then give you a count of how many Group Headers there were.
Hope that helps.
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Count GroupHeader lines (97SR2)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Count GroupHeader lines (97SR2)
- This topic has 9 replies, 4 voices, and was last updated 23 years, 3 months ago.
AuthorTopicWSrory
AskWoody LoungerDecember 5, 2001 at 4:42 pm #363783Viewing 2 reply threadsAuthorReplies-
WSKevin
AskWoody LoungerDecember 5, 2001 at 4:46 pm #556216How do I count the number of lines in a group header?
Using the Count() function on the table field, I get the number of rows returned from the query, not the number of unique values in the field (the report is grouped on this field).
I need that total to appear in the report footer.
Does that make sense?
-
WSKevin
AskWoody Lounger -
WSKevin
AskWoody LoungerDecember 5, 2001 at 4:57 pm #556221Oh, one more thing. In design view, I set the visible property for the textbox in the groupheader to False, but I can’t move the detail band up to reduce the space used by the groupheader band. It stops so as to always display the textbox. Is there some trick to reducing the size of the groupheader display band?
-
WSFrancois
AskWoody Lounger -
WSKevin
AskWoody LoungerDecember 5, 2001 at 10:41 pm #556299Hey Frank,
I tried that but I still can’t slide the details band over the control. I’m used to Powerbuilder for SQL report writing which allows the report bands to be shrunk to any size no matter what controls are in the band. Access appears to only allow the band to shrink to a size that makes sure all controls are visible (even if the visible prop is set to false).
-
WScharlotte
AskWoody LoungerDecember 6, 2001 at 4:46 am #556363
-
-
Viewing 2 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Finding Microsoft Office 2021 product key
by
Kathy Stevens
1 hour, 32 minutes ago -
Over-the-Top solves it!
by
RetiredGeek
6 hours, 46 minutes ago -
To Susan – Woody Leonhard, the “Lionhearted”
by
Myst
13 hours, 47 minutes ago -
Extracting Data From All Sheets
by
WSJon5
15 hours, 22 minutes ago -
Use wushowhide in Windows 11 24H2?
by
Tex265
15 hours, 30 minutes ago -
Hacktool:Win32/Winring0
by
Marvel Wars
2 hours, 11 minutes ago -
Microsoft Defender as Primary Security Question
by
blueboy714
9 minutes ago -
USB printers might print random text with the January 2025 preview update
by
Alex5723
18 hours ago -
Google’s 10-year-old Chromecast is busted, but a fix is coming
by
Alex5723
1 day, 3 hours ago -
Expand the taskbar?
by
CWBillow
1 day, 3 hours ago -
Gregory Forrest “Woody” Leonhard (1951-2025)
by
Susan Bradley
6 hours, 13 minutes ago -
March 2025 updates are out
by
Susan Bradley
4 hours, 39 minutes ago -
Windows 11 Insider Preview build 26120.3380 released to DEV and BETA
by
joep517
1 day, 21 hours ago -
Update Firefox to prevent add-ons issues from root certificate expiration
by
Alex5723
2 days, 4 hours ago -
Latest Firefox requires Password on start up
by
Gordski
1 day, 22 hours ago -
Resolved : AutoCAD 2022 might not open after updating to 24H2
by
Alex5723
2 days, 17 hours ago -
Missing api-ms-win-core-libraryloader-11-2-1.dll
by
IreneLinda
1 day, 15 hours ago -
How Much Daylight have YOU Saved?
by
Nibbled To Death By Ducks
1 day, 18 hours ago -
A brief history of Windows Settings
by
Simon Bisson
1 day, 12 hours ago -
Thunderbolt is not just for monitors
by
Ben Myers
1 day, 11 hours ago -
Password Generators — Your first line of defense
by
Deanna McElveen
1 day, 16 hours ago -
AskWoody at the computer museum
by
Will Fastie
16 hours, 27 minutes ago -
Planning for the unexpected
by
Susan Bradley
1 day, 17 hours ago -
Which printer type is the better one to buy?
by
Bob99
2 days, 18 hours ago -
Upgrading the web server
by
Susan Bradley
2 days, 17 hours ago -
New Windows 11 24H2 Setup – Initial Win Update prevention settings?
by
Tex265
3 days, 12 hours ago -
Creating a Google account
by
DavidofIN
3 days, 11 hours ago -
Undocumented “backdoor” found in Bluetooth chip used by a billion devices
by
Alex5723
3 days, 17 hours ago -
Microsoft Considering AI Models to Replace OpenAI’s in Copilot
by
Alex5723
4 days, 4 hours ago -
AI *emergent misalignment*
by
Alex5723
4 days, 5 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.