I am showing detail for a group that keeps a running sum on an amount field. I have calculated a % threshold in a field and when the running sum goes over that $ amount I have made the line not visible. However, I would like to show this last $ amount below the threshold in the group footer. This threshold changes as I go through the next member of the group but of course the running sum keeps accumulating the amounts even though the lines are not visible. Does anyone have any ideas how to capture the sum or just the amounts that are visible? Thanks in advance, Norma
![]() |
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 |
-
Running Sum in Group Footer (2003 SP2)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Running Sum in Group Footer (2003 SP2)
- This topic has 8 replies, 3 voices, and was last updated 17 years ago.
Viewing 0 reply threadsAuthorReplies-
WSHansV
AskWoody LoungerMay 16, 2008 at 3:47 pm #1109436Place an unbound text box txtTotal in the group footer.
Add code similar to the following to the On Format event of the detail section, subsituting the appropriate names:If Me.txtRunningSum <= TresholdValue Then
Me.txtTotal = Me.txtRunningSum
End IfThe value of txtTotal is set to that of the running sum as long as that hasn't passed the treshold.
-
WSnthayer
AskWoody LoungerMay 16, 2008 at 6:18 pm #1109464That works for the first person in my group, but the txtTotal stays the same for the next person in the group and I need that to start fresh with the new threshold value. Now my report prints correctly for the first person but is blank for the remaining people in the group because the txtTotal remains the same. Is there a way to reset txtTotal = 0 as it makes its way through the group? Thank you! Norma
-
WSPatricia W
AskWoody Lounger -
WSnthayer
AskWoody Lounger -
WSPatricia W
AskWoody LoungerMay 16, 2008 at 7:27 pm #1109479Well, I think if Han’s method works fine for the first person, it should work for the next — if you do use the running sum over group. I think (maybe I’m not figuring this out correctly) but I think you really must have a “running sum over group,” so it can restart at zero for each client — unless you want to do that all in code. If the “over group” isn’t working, you might want to re-check your sorting?
Ignore this that I wrote earlier , but just leaving it in FYI: How to you make the lines invisible — IOW, since you’ve probably got some code to make the line invisible, can you set a public variable at that time that (preventing it from incrementing further while with the current client is the same) and stores the amount you want to display in the group footer, and and then display it? and, upon the client changing, you set this public variable back to zero?
Pat
-
WSHansV
AskWoody Lounger -
WSnthayer
AskWoody Lounger -
WSHansV
AskWoody Lounger
-
-
-
-
Viewing 0 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
-
Mozilla Firefox Security Updates! Released late 17th May 2025
by
Alex5723
2 hours, 39 minutes ago -
Microsoft: Troubleshoot problems updating Windows
by
Alex5723
6 hours, 29 minutes ago -
Woman Files for Divorce After ChatGPT “Reads” Husband’s Coffee Cup
by
Alex5723
6 hours, 37 minutes ago -
Moving fwd, Win 11 Pro,, which is best? Lenovo refurb
by
Deo
4 minutes ago -
DBOS Advanced Network Analysis
by
Kathy Stevens
16 hours, 27 minutes ago -
Microsoft Edge Launching Automatically?
by
healeyinpa
6 hours, 52 minutes ago -
Google Chrome to block admin-level browser launches for better security
by
Alex5723
19 hours, 7 minutes ago -
iPhone SE2 Stolen Device Protection
by
Rick Corbett
11 hours, 23 minutes ago -
Some advice for managing my wireless internet gateway
by
LHiggins
7 hours, 4 minutes ago -
NO POWER IN KEYBOARD OR MOUSE
by
HE48AEEXX77WEN4Edbtm
13 hours, 19 minutes ago -
A CVE-MITRE-CISA-CNA Extravaganza
by
Nibbled To Death By Ducks
1 day, 4 hours ago -
Sometimes I wonder about these bots
by
Susan Bradley
1 day ago -
Does windows update component store “self heal”?
by
Mike Cross
14 hours, 57 minutes ago -
Windows 11 Insider Preview build 27858 released to Canary
by
joep517
1 day, 18 hours ago -
Pwn2Own Berlin 2025: Day One Results
by
Alex5723
2 hours, 31 minutes ago -
Windows 10 might repeatedly display the BitLocker recovery screen at startup
by
Susan Bradley
6 hours, 12 minutes ago -
Windows 11 Insider Preview Build 22631.5409 (23H2) released to Release Preview
by
joep517
1 day, 21 hours ago -
Windows 10 Build 19045.5912 (22H2) to Release Preview Channel
by
joep517
1 day, 21 hours ago -
Kevin Beaumont on Microsoft Recall
by
Susan Bradley
1 day, 9 hours ago -
The Surface Laptop Studio 2 is no longer being manufactured
by
Alex5723
2 days, 5 hours ago -
0Patch, where to begin
by
cassel23
1 day, 23 hours ago -
CFPB Quietly Kills Rule to Shield Americans From Data Brokers
by
Alex5723
2 days, 19 hours ago -
89 million Steam account details just got leaked,
by
Alex5723
2 days, 6 hours ago -
KB5058405: Linux – Windows dual boot SBAT bug, resolved with May 2025 update
by
Alex5723
3 days, 3 hours ago -
A Validation (were one needed) of Prudent Patching
by
Nibbled To Death By Ducks
2 days, 18 hours ago -
Master Patch Listing for May 13, 2025
by
Susan Bradley
2 days, 5 hours ago -
Installer program can’t read my registry
by
Peobody
2 hours, 43 minutes ago -
How to keep Outlook (new) in off position for Windows 11
by
EspressoWillie
2 days, 16 hours ago -
Intel : CVE-2024-45332, CVE-2024-43420, CVE-2025-20623
by
Alex5723
2 days, 23 hours ago -
False error message from eMClient
by
WSSebastian42
3 days, 14 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.