473,406 Members | 2,956 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,406 software developers and data experts.

RunningSum over first group in report

Hello all

I have a report where I have two nested groups.
I know there are only three standard options for running sum: None,
Over Group and Over All.
I have a MyTextBox in detail section where the data is summed over
group.
But the data is summed over the second group. When a new group begins
MyTextBox value is resetting to zero. I need a running sum over the
first group so when another second group begins MyTextBox value will
not reset to zero.
Can anyone tell me how one can make a running sum over only the first
group.
Is there some option RunningSum over first group, or can someone
suggest some VBA code to do that?
I'm using A2k2 SP3.

Thank you

Sebastian C.

Oct 28 '06 #1
3 4086
"Sebastian" <gr********@artel.rowrote in
news:11*********************@b28g2000cwb.googlegro ups.com:
Hello all

I have a report where I have two nested groups.
I know there are only three standard options for running sum:
None, Over Group and Over All.
I have a MyTextBox in detail section where the data is summed
over group.
But the data is summed over the second group. When a new group
begins MyTextBox value is resetting to zero. I need a running
sum over the first group so when another second group begins
MyTextBox value will not reset to zero.
Can anyone tell me how one can make a running sum over only
the first group.
Is there some option RunningSum over first group, or can
someone suggest some VBA code to do that?
I'm using A2k2 SP3.

Thank you

Sebastian C.
I can't imagine why you would want a running sum total of a
first group in a second group.

However there are several techniques to try. One is to replace
the second group with a subreport, and filter it out of the main
report.

Another is to put code into the first group's footer_OnFormat
Event to capture the value of the running sum to a variable
(Dim'ed in the module's declarations before the subs) and use
code to put the variable into an unbound textbox.,
--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com

Oct 28 '06 #2

Bob Quintal a scris:
"Sebastian" <gr********@artel.rowrote in
news:11*********************@b28g2000cwb.googlegro ups.com:
Hello all

I have a report where I have two nested groups.
I know there are only three standard options for running sum:
None, Over Group and Over All.
I have a MyTextBox in detail section where the data is summed
over group.
But the data is summed over the second group. When a new group
begins MyTextBox value is resetting to zero. I need a running
sum over the first group so when another second group begins
MyTextBox value will not reset to zero.
Can anyone tell me how one can make a running sum over only
the first group.
Is there some option RunningSum over first group, or can
someone suggest some VBA code to do that?
I'm using A2k2 SP3.

Thank you

Sebastian C.
I can't imagine why you would want a running sum total of a
first group in a second group.

However there are several techniques to try. One is to replace
the second group with a subreport, and filter it out of the main
report.

Another is to put code into the first group's footer_OnFormat
Event to capture the value of the running sum to a variable
(Dim'ed in the module's declarations before the subs) and use
code to put the variable into an unbound textbox.,
--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com
It is about a account transactions.
The first group is the account number ( there are many accounts) and
the second group is the month.
I need to calculate the debit balance or credit balance so I need to
sum the debit and the credit only to first group.
At a given time I need to know the debit or credit balance for the
whole account form the beginning of the year not just for the
operations in one month.
That`s why I need running sum over by first group only.

Thank you for your time.

Sebastian C.

Oct 28 '06 #3
"Sebastian" <gr********@artel.rowrote in
news:11**********************@i3g2000cwc.googlegro ups.com:
>
Bob Quintal a scris:
>"Sebastian" <gr********@artel.rowrote in
news:11*********************@b28g2000cwb.googlegr oups.com:
Hello all

I have a report where I have two nested groups.
I know there are only three standard options for running
sum: None, Over Group and Over All.
I have a MyTextBox in detail section where the data is
summed over group.
But the data is summed over the second group. When a new
group begins MyTextBox value is resetting to zero. I need
a running sum over the first group so when another second
group begins MyTextBox value will not reset to zero.
Can anyone tell me how one can make a running sum over only
the first group.
Is there some option RunningSum over first group, or can
someone suggest some VBA code to do that?
I'm using A2k2 SP3.

Thank you

Sebastian C.
I can't imagine why you would want a running sum total of a
first group in a second group.

However there are several techniques to try. One is to
replace the second group with a subreport, and filter it out
of the main report.

Another is to put code into the first group's footer_OnFormat
Event to capture the value of the running sum to a variable
(Dim'ed in the module's declarations before the subs) and use
code to put the variable into an unbound textbox.,
--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com

It is about a account transactions.
The first group is the account number ( there are many
accounts) and the second group is the month.
I need to calculate the debit balance or credit balance so I
need to sum the debit and the credit only to first group.
At a given time I need to know the debit or credit balance for
the whole account form the beginning of the year not just for
the operations in one month.
That`s why I need running sum over by first group only.

Thank you for your time.

Sebastian C.
so you want
report header
-Account1 Group header (previous balance)
-Account 1 details
--month1 subgroup header
--month1 subgroup details
--month1 subgroup footer (running sum over month)
--month subgroup
....
--month subgroup
....
-account1 footer (running sum over account)
-Account2 header
etc...

redo the report using a summation query for the month.
remove the month group. replace with month subform.

--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com

Oct 28 '06 #4

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

Similar topics

2
by: Eric Schneider | last post by:
I'll preface this question with my assertion that I'm not intellectually challenged...(if you ask my wife on a good day she'll probably agree with you too) However, this problem is making me...
2
by: Simone | last post by:
Hello. I am using the code below: ------------------------------------------- Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer) If Me.Section(0).BackColor = vbWhite Then...
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 ...
1
by: Grim Reaper | last post by:
I asked this question, earlier, and received an answer that I am not sure about how to do. Basically, I am printing mailing labels with a "Sorting/Grouping" section that groups the label types...
2
by: Pea | last post by:
Hello, I have a report with groups, subgroups and counts. I'm trying to give a total for each group and used the RunningSum property by group. But I find that it's running throughout the report....
1
by: Robert Schoenert | last post by:
How do I get an Access report to start a new page when the first letter of LastName changes? Thanks Robert
2
by: emc_cos | last post by:
So I am relatively new to Access so please bare with me... I have been able to create a very functional form that will be utilized for time entry for tasks. The primary form is a record...
2
by: unleaded14 | last post by:
Hi, Good day to all. I'm an newbie in visual basic. I just want to know what is the equivalent of MSAccess Report's(Textbox) RunningSum property to VB6's Datareport. You see I'm trying to...
0
by: Les Desser | last post by:
I have a report with several Grouping fields. I need a running sub that crosses the inner groups but is reset for the outermost group. Can I do this without resorting to a sub-report? ...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
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
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...
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.