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

Need help with subreport/running sum

Using A2K. I've got a report/subreport that looks like the following:

<main report>
Account AAA Beginning Fund Balance: $10,000

<subreport>
"Expense" "Total" "Balance"
Expense #1 $4,000 $6,000
Expense #2 $50 $5,950
Expense #3 $100 $5,850
....and so on...

"Balance" is computed by subtracting "Total" from the previous
"Balance".

I'm not sure how to set "Balance" up in the subreport. Do I use a
running sum? If so, how?

Thanks for any help or advice.

Jun 11 '07 #1
2 2144
EManning wrote:
>Using A2K. I've got a report/subreport that looks like the following:

<main report>
Account AAA Beginning Fund Balance: $10,000

<subreport>
"Expense" "Total" "Balance"
Expense #1 $4,000 $6,000
Expense #2 $50 $5,950
Expense #3 $100 $5,850
...and so on...

"Balance" is computed by subtracting "Total" from the previous
"Balance".

I'm not sure how to set "Balance" up in the subreport. Do I use a
running sum? If so, how?

Add a hidden text box (named txtRunExp) with control source
set to the total field and set its Running Sum property to
Over Group.

Then add a visible text box (named txtBalance) with a
control source expression like:
=Parent.txtBeginningBalance - txtRunExp

--
Marsh
Jun 11 '07 #2
On Jun 11, 4:01 pm, Marshall Barton <marshbar...@wowway.comwrote:
EManning wrote:
Using A2K. I've got a report/subreport that looks like the following:
<main report>
Account AAA Beginning Fund Balance: $10,000
<subreport>
"Expense" "Total" "Balance"
Expense #1 $4,000 $6,000
Expense #2 $50 $5,950
Expense #3 $100 $5,850
...and so on...
"Balance" is computed by subtracting "Total" from the previous
"Balance".
I'm not sure how to set "Balance" up in the subreport. Do I use a
running sum? If so, how?

Add a hidden text box (named txtRunExp) with control source
set to the total field and set its Running Sum property to
Over Group.

Then add a visible text box (named txtBalance) with a
control source expression like:
=Parent.txtBeginningBalance - txtRunExp

--
Marsh- Hide quoted text -

- Show quoted text -


Thank you so much. For some reason, I could not figure that out.
Jun 11 '07 #3

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

Similar topics

1
by: Steve Edwards | last post by:
I am trying to use an existing report as a subreport in another report. I have the subreport added to the main report, but the only thing that shows up where the subreport should be is the name of...
1
by: Manal/report designer | last post by:
Thank you in advance for any suggestions... I'm using crystal reports version 8 & SQL server. I've created a report that is composed of 2 parts: 1st part contains the mainreport which uses...
2
by: Deano | last post by:
OK, I've been taking the detour from hell trying to sort this and after taking a walk I think I need a rethink. I have a report for a single employee that includes a subreport which lists...
7
by: ChadDiesel | last post by:
Hello everyone, I'm having a problem with Access that I need some help with. The short version is, I want to print a list of parts and part quantities that belong to a certain part group---One...
1
by: shaqattack1992-newsgroups | last post by:
I know this is kind of a weird question, but is there anyway to give a subreport control of a main report? I posted my situation earlier about having drawings print out after a group. I have a...
3
by: kenneth xg | last post by:
Hi, I have problem on passing parameters to subreports' stored procedures which require parameters, from an asp.net web form. I ve tried to use the stored procedures on the main report it...
0
by: Emee | last post by:
Hi, Could someone please help me with this: I've got a list of employees grouped by Department and then Possition. The names of the employees are listed in the Details section. I've created a...
4
by: Wook | last post by:
Ok I got a set of Forms Reports etc it goes like this Reports Form Passes a Filter to the report for the needed results The filter it passes along is fine except one problem I need a way for the...
0
by: billygotee | last post by:
Hi, I posted an issue previously that was entirely accurate. I have a master report called "MasterReport.rdlc" and a subreport called "Subreport.rdlc". MasterReport.rdlc has a single subreport...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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.