Hi,
I haven't used access reports much. I have a problem in getting the
total of a group.
I have 3 fields, ProgName (Program name), Pname (Participant's name)
and PCategory (Participant category)
PCategory can have values 'SC', 'ST' and 'Others'
I need to get a table like below
Program Name SC
ST Others Total
----------------------
------ ----- ----------
--------
Program 1
5 2 8 15
Program 2
0 1 10 11
..
..
So (for example) to get the total for Others for each program I have
done as follows. I have put a text box 'txtOthers' in the detail
section for which the control source is:
Iif([PCategory]="Others",1, 0)
I have grouped the report with ProgName and in the ProgName footer I
put a text box ' GTOthers' which has the control source
'=Sum([txtOthers])'
When I run the report, a pop up window appears saying "Enter Parameter
Value - txtOthers"
I trird changing it to =Sum([Report_Category !txtOthers]) where
'Catehory' is the name of the Report. Same problem.
I can't understand what exactly I am doing wrong.
The following things work:
If I change the control source of GTOthers to '=[txtOthers]' then no
error appears. Of course it just shows the last value of txtOthers
I put a textbox in the ProgName footer with control source
'=Count([Pname])' for getting the total number of participants. It
works correctly
Would apprecite any help
Sunil Korah 7 3653
On Feb 2, 9:43 am, "Sunil Korah" <kor...@gmail.c omwrote:
Hi,
I haven't used access reports much. I have a problem in getting the
total of a group.
I have 3 fields, ProgName (Program name), Pname (Participant's name)
and PCategory (Participant category)
PCategory can have values 'SC', 'ST' and 'Others'
I need to get a table like below
Program Name SC
ST Others Total
----------------------
------ ----- ----------
--------
Program 1
5 2 8 15
Program 2
0 1 10 11
.
.
So (for example) to get the total for Others for each program I have
done as follows. I have put a text box 'txtOthers' in the detail
section for which the control source is:
Iif([PCategory]="Others",1, 0)
I have grouped the report with ProgName and in the ProgName footer I
put a text box ' GTOthers' which has the control source
'=Sum([txtOthers])'
When I run the report, a pop up window appears saying "Enter Parameter
Value - txtOthers"
I trird changing it to =Sum([Report_Category !txtOthers]) where
'Catehory' is the name of the Report. Same problem.
I can't understand what exactly I am doing wrong.
The following things work:
If I change the control source of GTOthers to '=[txtOthers]' then no
error appears. Of course it just shows the last value of txtOthers
I put a textbox in the ProgName footer with control source
'=Count([Pname])' for getting the total number of participants. It
works correctly
Would apprecite any help
Sunil Korah
Sunil:
You cannot (TTBOMK) sum up the values of calculated fields on a
report. You have two options:
1. Add this as a calculated field to your underlying query:
isOthers: Iif([PCategory]="Others",1, 0)
Then you can place a field on your report whose Control Source is
=Sum([isOthers])
2. Add a field to your report with the following properties:
Control Source: Iif([PCategory]="Others",1, 0)
Name: txtOthersCount
Running Sum: Over All (or Over Group if that's what you need)
Visible: No
Then you can place a visible field where you're wanting to display the
total whose Control Source is =[txtOthersCount].
If at all possible, method 1 is the better way to go, especially if
you need to do other calcluations on your results.
HTH,
Jana
On Feb 2, 2:47 pm, "Jana" <Bauer.J...@gma il.comwrote:
Sunil:
You cannot (TTBOMK) sum up the values of calculated fields on a
report. You have two options:
1. Add this as a calculated field to your underlying query:
isOthers: Iif([PCategory]="Others",1, 0)
Then you can place a field on your report whose Control Source is
=Sum([isOthers])
TTBOMK, I have done that before. If the control has a name that is
different than the field I think you can Sum the name of the control.
I haven't tried it lately though.
James A. Fortune CD********@Fort uneJames.com
Jana,
Thanks.
Your first option worked. The second did not
Regards
Sunil Korah
On Feb 3, 12:47 am, "Jana" <Bauer.J...@gma il.comwrote:
On Feb 2, 9:43 am, "Sunil Korah" <kor...@gmail.c omwrote:
Hi,
I haven't used access reports much. I have a problem in getting the
total of a group.
I have 3 fields, ProgName (Program name), Pname (Participant's name)
and PCategory (Participant category)
PCategory can have values 'SC', 'ST' and 'Others'
I need to get a table like below
Program Name SC
ST Others Total
----------------------
------ ----- ----------
--------
Program 1
5 2 8 15
Program 2
0 1 10 11
.
.
So (for example) to get the total for Others for each program I have
done as follows. I have put a text box 'txtOthers' in the detail
section for which the control source is:
Iif([PCategory]="Others",1, 0)
I have grouped the report with ProgName and in the ProgName footer I
put a text box ' GTOthers' which has the control source
'=Sum([txtOthers])'
When I run the report, a pop up window appears saying "Enter Parameter
Value - txtOthers"
I trird changing it to =Sum([Report_Category !txtOthers]) where
'Catehory' is the name of the Report. Same problem.
I can't understand what exactly I am doing wrong.
The following things work:
If I change the control source of GTOthers to '=[txtOthers]' then no
error appears. Of course it just shows the last value of txtOthers
I put a textbox in the ProgName footer with control source
'=Count([Pname])' for getting the total number of participants. It
works correctly
Would apprecite any help
Sunil Korah
Sunil:
You cannot (TTBOMK) sum up the values of calculated fields on a
report. You have two options:
1. Add this as a calculated field to your underlying query:
isOthers: Iif([PCategory]="Others",1, 0)
Then you can place a field on your report whose Control Source is
=Sum([isOthers])
2. Add a field to your report with the following properties:
Control Source: Iif([PCategory]="Others",1, 0)
Name: txtOthersCount
Running Sum: Over All (or Over Group if that's what you need)
Visible: No
Then you can place a visible field where you're wanting to display the
total whose Control Source is =[txtOthersCount].
If at all possible, method 1 is the better way to go, especially if
you need to do other calcluations on your results.
HTH,
Jana
On Feb 5, 8:31 am, "Sunil Korah" <kor...@gmail.c omwrote:
Jana,
Thanks.
Your first option worked. The second did not
Regards
Sunil Korah
On Feb 3, 12:47 am, "Jana" <Bauer.J...@gma il.comwrote:
On Feb 2, 9:43 am, "Sunil Korah" <kor...@gmail.c omwrote:
Hi,
I haven't used access reports much. I have a problem in getting the
total of a group.
I have 3 fields, ProgName (Program name), Pname (Participant's name)
and PCategory (Participant category)
PCategory can have values 'SC', 'ST' and 'Others'
I need to get a table like below
Program Name SC
ST Others Total
----------------------
------ ----- ----------
--------
Program 1
5 2 8 15
Program 2
0 1 10 11
.
.
So (for example) to get the total for Others for each program I have
done as follows. I have put a text box 'txtOthers' in the detail
section for which the control source is:
Iif([PCategory]="Others",1, 0)
I have grouped the report with ProgName and in the ProgName footer I
put a text box ' GTOthers' which has the control source
'=Sum([txtOthers])'
When I run the report, a pop up window appears saying "Enter Parameter
Value - txtOthers"
I trird changing it to =Sum([Report_Category !txtOthers]) where
'Catehory' is the name of the Report. Same problem.
I can't understand what exactly I am doing wrong.
The following things work:
If I change the control source of GTOthers to '=[txtOthers]' then no
error appears. Of course it just shows the last value of txtOthers
I put a textbox in the ProgName footer with control source
'=Count([Pname])' for getting the total number of participants. It
works correctly
Would apprecite any help
Sunil Korah
Sunil:
You cannot (TTBOMK) sum up the values of calculated fields on a
report. You have two options:
1. Add this as a calculated field to your underlying query:
isOthers: Iif([PCategory]="Others",1, 0)
Then you can place a field on your report whose Control Source is
=Sum([isOthers])
2. Add a field to your report with the following properties:
Control Source: Iif([PCategory]="Others",1, 0)
Name: txtOthersCount
Running Sum: Over All (or Over Group if that's what you need)
Visible: No
Then you can place a visible field where you're wanting to display the
total whose Control Source is =[txtOthersCount].
If at all possible, method 1 is the better way to go, especially if
you need to do other calcluations on your results.
HTH,
Jana- Hide quoted text -
- Show quoted text -
Sunil:
Glad I could help!
James:
It's possible it works in future releases, but I've never been able to
get it to work in '97, no matter what I named the text box.
Jana
On Feb 5, 10:47 am, "Jana" <Bauer.J...@gma il.comwrote:
On Feb 5, 8:31 am, "Sunil Korah" <kor...@gmail.c omwrote:
Jana,
Thanks.
Your first option worked. The second did not
Regards
Sunil Korah
On Feb 3, 12:47 am, "Jana" <Bauer.J...@gma il.comwrote:
On Feb 2, 9:43 am, "Sunil Korah" <kor...@gmail.c omwrote:
Hi,
I haven't used access reports much. I have a problem in getting the
total of a group.
I have 3 fields, ProgName (Program name), Pname (Participant's name)
and PCategory (Participant category)
PCategory can have values 'SC', 'ST' and 'Others'
I need to get a table like below
Program Name SC
ST Others Total
----------------------
------ ----- ----------
--------
Program 1
5 2 8 15
Program 2
0 1 10 11
.
.
So (for example) to get the total for Others for each program I have
done as follows. I have put a text box 'txtOthers' in the detail
section for which the control source is:
Iif([PCategory]="Others",1, 0)
I have grouped the report with ProgName and in the ProgName footer I
put a text box ' GTOthers' which has the control source
'=Sum([txtOthers])'
When I run the report, a pop up window appears saying "Enter Parameter
Value - txtOthers"
I trird changing it to =Sum([Report_Category !txtOthers]) where
'Catehory' is the name of the Report. Same problem.
I can't understand what exactly I am doing wrong.
The following things work:
If I change the control source of GTOthers to '=[txtOthers]' then no
error appears. Of course it just shows the last value of txtOthers
I put a textbox in the ProgName footer with control source
'=Count([Pname])' for getting the total number of participants. It
works correctly
Would apprecite any help
Sunil Korah
Sunil:
You cannot (TTBOMK) sum up the values of calculated fields on a
report. You have two options:
1. Add this as a calculated field to your underlying query:
isOthers: Iif([PCategory]="Others",1, 0)
Then you can place a field on your report whose Control Source is
=Sum([isOthers])
2. Add a field to your report with the following properties:
Control Source: Iif([PCategory]="Others",1, 0)
Name: txtOthersCount
Running Sum: Over All (or Over Group if that's what you need)
Visible: No
Then you can place a visible field where you're wanting to display the
total whose Control Source is =[txtOthersCount].
If at all possible, method 1 is the better way to go, especially if
you need to do other calcluations on your results.
HTH,
Jana- Hide quoted text -
- Show quoted text -
Sunil:
Glad I could help!
James:
It's possible it works in future releases, but I've never been able to
get it to work in '97, no matter what I named the text box.
Jana- Hide quoted text -
- Show quoted text -
Perhaps it was with A2K. I'll have to try some experiments. I've
always worked around the problem in A97 so I haven't had to try using
the text box names method. Did you solve your problem completely?
James A. Fortune CD********@Fort uneJames.com
On Feb 5, 9:45 pm, CDMAPos...@Fort uneJames.com wrote:
On Feb 5, 10:47 am, "Jana" <Bauer.J...@gma il.comwrote:
On Feb 5, 8:31 am, "Sunil Korah" <kor...@gmail.c omwrote:
Jana,
Thanks.
Your first option worked. The second did not
Regards
Sunil Korah
On Feb 3, 12:47 am, "Jana" <Bauer.J...@gma il.comwrote:
On Feb 2, 9:43 am, "Sunil Korah" <kor...@gmail.c omwrote:
Hi,
I haven't used access reports much. I have a problem in getting the
total of a group.
I have 3 fields, ProgName (Program name), Pname (Participant's name)
and PCategory (Participant category)
PCategory can have values 'SC', 'ST' and 'Others'
I need to get a table like below
Program Name SC
ST Others Total
----------------------
------ ----- ----------
--------
Program 1
5 2 8 15
Program 2
0 1 10 11
.
.
So (for example) to get the total for Others for each program I have
done as follows. I have put a text box 'txtOthers' in the detail
section for which the control source is:
Iif([PCategory]="Others",1, 0)
I have grouped the report with ProgName and in the ProgName footer I
put a text box ' GTOthers' which has the control source
'=Sum([txtOthers])'
When I run the report, a pop up window appears saying "Enter Parameter
Value - txtOthers"
I trird changing it to =Sum([Report_Category !txtOthers]) where
'Catehory' is the name of the Report. Same problem.
I can't understand what exactly I am doing wrong.
The following things work:
If I change the control source of GTOthers to '=[txtOthers]' then no
error appears. Of course it just shows the last value of txtOthers
I put a textbox in the ProgName footer with control source
'=Count([Pname])' for getting the total number of participants. It
works correctly
Would apprecite any help
Sunil Korah
Sunil:
You cannot (TTBOMK) sum up the values of calculated fields on a
report. You have two options:
1. Add this as a calculated field to your underlying query:
isOthers: Iif([PCategory]="Others",1, 0)
Then you can place a field on your report whose Control Source is
=Sum([isOthers])
2. Add a field to your report with the following properties:
Control Source: Iif([PCategory]="Others",1, 0)
Name: txtOthersCount
Running Sum: Over All (or Over Group if that's what you need)
Visible: No
Then you can place a visible field where you're wanting to display the
total whose Control Source is =[txtOthersCount].
If at all possible, method 1 is the better way to go, especially if
you need to do other calcluations on your results.
HTH,
Jana- Hide quoted text -
- Show quoted text -
Sunil:
Glad I could help!
James:
It's possible it works in future releases, but I've never been able to
get it to work in '97, no matter what I named the text box.
Jana- Hide quoted text -
- Show quoted text -
Perhaps it was with A2K. I'll have to try some experiments. I've
always worked around the problem in A97 so I haven't had to try using
the text box names method. Did you solve your problem completely?
James A. Fortune
CDMAPos...@Fort uneJames.com- Hide quoted text -
- Show quoted text -
James:
I have always just worked around the issue in A97, so no problems
here :-)
Jana
On Feb 6, 10:57 am, "Jana" <Bauer.J...@gma il.comwrote:
James:
I have always just worked around the issue in A97, so no problems
here :-)
Jana
Sorry Jana. A confusion wave must have passed through here last night
about the time of my post.
James A. Fortune CD********@Fort uneJames.com This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Paul |
last post by:
HI! I have a script that does not seem to work. can someone tell me what I
am doing wrong here?
<script language="JavaScript">
function firefoxautofix(){
parent.window.resizeBy(-1,-1)
parent.window.resizeBy(+1,+1)
}
</script>
|
by: Galina |
last post by:
Hello
I have a report, which lists records. Each record has money paid
field. Money paid can be 0 or not 0. I calculate and print summary of
money for a group in the group footer, as well as summary of money for
all groups the report footer. When there is at least one record with
money >0, group and report footers are appropriate and look OK.
When all records are with 0 money, footers look silly. I’d like
not to print them. I have placed...
|
by: Pepa Cougar |
last post by:
Hello, I'm writing a managed C++ wrapper for a legacy C++ code. I'm
wrapping a script-compiler class, which uses a callback to report
script errors back to the client.
The callback prototype is defined as:
typedef void (__stdcall *COMPILE_ERROR_CALLBACK)(int Line, char* Text,
void* Data);
|
by: Aaron Ackerman |
last post by:
I cannot a row to this bound DataGrid to SAVE MY LIFE! I have tried
everything and I am at a loss. The using goes into add mode with the add
button adds his data then updates with the update button, seems simple.
I am using ALL visual controls (supposedly to simplify things. If I was not
using the visual controls and calling an ExecuteNonQuery no prob.
Please look at my code and tell me what I am doing wrong. Also, what are the
advatages...
|
by: MMcCarthy |
last post by:
Interesting title isn't it.
Ok everyone, I have a problem and I'm hoping some of you genius's have a solution.
I have a Report which after being printed will have the pages run through an automated process. The process needs to know when each group has finished. This will be done using visual aid of 3 lines. The first line is a marker and will aways be visible on the page. The second line will be visible on all pages in the group...
| |
by: shapper |
last post by:
Hello,
I am creating a class with a control. I compiled the class and used it
on an Asp.Net 2.0 web site page.
I can see the begin and end tags of my control (<oland </ol>) but
somehow the child controls (just a literal for testing) of my control
is not being added to the page.
Could someone tell me what am I doing wrong?
|
by: Nicko. |
last post by:
Hi,
I'm at my wits-end here. I'm a beginner with ASP/C# (using .NET 2003)
and I'm trying to post variables from a classic ASP form to a ASP.NET
form. The Classic ASP form was scripted with VBScript whereas the
ASP.NET page is scripted with C#.
My issue is this: I have two files within the site's working directory
(PaymentPage.aspx and PaymentPage.aspx.cs). The .cs file is the
codebehind for the aspx file. Basically, I can ouput the...
|
by: SirG |
last post by:
I'm looking for an explanation of why one piece of code works and
another does not. I have to warn you that this is the first piece of
Javascript I've ever written, so if there is a better way or a simpler
answer, by all means show me the light!
What I'm trying to do is refresh the page at a timed interval
( actually redirect the page... ) and I have a simple piece of code I
got from the net that works, but I need to modify it a little...
|
by: DavidSeck.com |
last post by:
Hi,
I am working with the Facebook API right now, an I have kind of a
problem, but I don't know what I am doing wrong.
So I have a few arrays, f.ex.:
User albums:
array(2) {
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |