473,473 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Report Sum

DS
How do you get a sumon a calculated field in a detail section on a
report? I have a group footer that I need the sum on.
Thanks
DS
Nov 13 '05 #1
6 4384
You have to sum the calculation rather than refer to the name of the
calculated control (presumably a text box). So if your Detail section
contains a text box named "txtTotal" and that text box's Control Source is
"=[Price] * [Quantity]" then your sum has to be in a text box with the
Control Source "=Sum([Price] * [Quantity])" rather than "=Sum([txtTotal])
"DS" <bo******@optonline.net> wrote in message
news:7i*************@fe08.lga...
How do you get a sumon a calculated field in a detail section on a
report? I have a group footer that I need the sum on.
Thanks
DS

Nov 13 '05 #2
DS
Dave M wrote:
You have to sum the calculation rather than refer to the name of the
calculated control (presumably a text box). So if your Detail section
contains a text box named "txtTotal" and that text box's Control Source is
"=[Price] * [Quantity]" then your sum has to be in a text box with the
Control Source "=Sum([Price] * [Quantity])" rather than "=Sum([txtTotal])
"DS" <bo******@optonline.net> wrote in message
news:7i*************@fe08.lga...
How do you get a sumon a calculated field in a detail section on a
report? I have a group footer that I need the sum on.
Thanks
DS


Right, I tried that and I still get nothing. Am I doing something wrong?
Thanks
DS
Nov 13 '05 #3
DS
Dave M wrote:
You have to sum the calculation rather than refer to the name of the
calculated control (presumably a text box). So if your Detail section
contains a text box named "txtTotal" and that text box's Control Source is
"=[Price] * [Quantity]" then your sum has to be in a text box with the
Control Source "=Sum([Price] * [Quantity])" rather than "=Sum([txtTotal])
"DS" <bo******@optonline.net> wrote in message
news:7i*************@fe08.lga...
How do you get a sumon a calculated field in a detail section on a
report? I have a group footer that I need the sum on.
Thanks
DS


PS That calculated control is based on another calculated control.
DS
Nov 13 '05 #4
Aha! That makes it more complicated, but you can still do stuff like

=Sum(([Cost] + [Tax]) * [Quantity])

However, if it's getting to that point, you're probably better off to do as
much of the calculation as you can in a query that then supports the
report.. If you have a calculated field in a query that looks something
like Extension:([Cost] + [Tax]) * [Quantity]) you can then have a text box
for the Exetnsion field in your Detail section, and then a summary textbox
that uses =Sum([Extension]) in the appropriate footer(s).

"DS" <bo******@optonline.net> wrote in message
news:OO***************@fe08.lga...
Dave M wrote:
You have to sum the calculation rather than refer to the name of the
calculated control (presumably a text box). So if your Detail section
contains a text box named "txtTotal" and that text box's Control Source is "=[Price] * [Quantity]" then your sum has to be in a text box with the
Control Source "=Sum([Price] * [Quantity])" rather than "=Sum([txtTotal])

"DS" <bo******@optonline.net> wrote in message
news:7i*************@fe08.lga...
How do you get a sumon a calculated field in a detail section on a
report? I have a group footer that I need the sum on.
Thanks
DS


PS That calculated control is based on another calculated control.
DS

Nov 13 '05 #5
DS
Dave M wrote:
Aha! That makes it more complicated, but you can still do stuff like

=Sum(([Cost] + [Tax]) * [Quantity])

However, if it's getting to that point, you're probably better off to do as
much of the calculation as you can in a query that then supports the
report.. If you have a calculated field in a query that looks something
like Extension:([Cost] + [Tax]) * [Quantity]) you can then have a text box
for the Exetnsion field in your Detail section, and then a summary textbox
that uses =Sum([Extension]) in the appropriate footer(s).

"DS" <bo******@optonline.net> wrote in message
news:OO***************@fe08.lga...
Dave M wrote:

You have to sum the calculation rather than refer to the name of the
calculated control (presumably a text box). So if your Detail section
contains a text box named "txtTotal" and that text box's Control Source
is
"=[Price] * [Quantity]" then your sum has to be in a text box with the
Control Source "=Sum([Price] * [Quantity])" rather than
"=Sum([txtTotal])

"DS" <bo******@optonline.net> wrote in message
news:7i*************@fe08.lga...
How do you get a sumon a calculated field in a detail section on a
report? I have a group footer that I need the sum on.
Thanks
DS

PS That calculated control is based on another calculated control.
DS


Thanks I'll give it a try and let you know.
DS
Nov 13 '05 #6
DS
Dave M wrote:
Aha! That makes it more complicated, but you can still do stuff like

=Sum(([Cost] + [Tax]) * [Quantity])

However, if it's getting to that point, you're probably better off to do as
much of the calculation as you can in a query that then supports the
report.. If you have a calculated field in a query that looks something
like Extension:([Cost] + [Tax]) * [Quantity]) you can then have a text box
for the Exetnsion field in your Detail section, and then a summary textbox
that uses =Sum([Extension]) in the appropriate footer(s).

"DS" <bo******@optonline.net> wrote in message
news:OO***************@fe08.lga...
Dave M wrote:

You have to sum the calculation rather than refer to the name of the
calculated control (presumably a text box). So if your Detail section
contains a text box named "txtTotal" and that text box's Control Source
is
"=[Price] * [Quantity]" then your sum has to be in a text box with the
Control Source "=Sum([Price] * [Quantity])" rather than
"=Sum([txtTotal])

"DS" <bo******@optonline.net> wrote in message
news:7i*************@fe08.lga...
How do you get a sumon a calculated field in a detail section on a
report? I have a group footer that I need the sum on.
Thanks
DS

PS That calculated control is based on another calculated control.
DS


Thanks That worked. I guess I was getting kinda deep in Calculated fields!!
DS
Nov 13 '05 #7

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

Similar topics

3
by: CSDunn | last post by:
Hello, I have a situation with MS Access 2000 in which I need to display report data in spreadsheet orientation (much like a datasheet view for a form). If you think of the report in terms of what...
1
by: Nathan Bloomfield | last post by:
Does anyone know if there is any documentation which relates to Access2k + ? or can anyone help adjust the code? I am having trouble converting the DAO references. TITLE :INF: How to...
6
by: Bob Alston | last post by:
I am looking for Access reporting add-in that would be easy to use by end users. My key focus is on selection criteria. I am very happy with the Access report writer capabilities. As far as...
1
by: lorirobn | last post by:
Hi, I have a report that works just fine. Now I would like to add the capability to choose selection criteria to limit what is displayed. I created several reports that do this, but they used...
1
by: monskie | last post by:
Hello to all, I have a problem which could be trivial to you guys. This concerns opening several crystal reports on the a crystal viewer on an ASPX page by calling window.open. My...
6
by: Dave | last post by:
On my form I have combo boxes. These combo boxes, after updating them, populate respective listboxes that are located below the combo boxes on the same form. I am trying to use a "generate...
3
by: creative1 | last post by:
Here is how you create a complex data report that involves parent and child commands and you can update information at runtime. Its pretty straight forward to work with simple queries; however,...
12
by: Studiotyphoon | last post by:
Hi, I have report which I need to print 3 times, but would like to have the following headings Customer Copy - Print 1 Accounts Copy - Print 2 File Copy -Print 3 I created a macro to...
11
by: Gord | last post by:
When I open a certain report, it runs some code that generates the records that will be displayed in that report. This works fine. When I go to print preview the report it appears that the code...
0
by: akmaRudiliyn | last post by:
Hi..i am newbie and student in programming,so need help from expert. Here is what i want to do. 1-I want to create Report System/Reporting System. 2-User must choose database and enter username...
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
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,...
1
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...
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...
1
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.