473,545 Members | 1,890 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Count Checkboxes

I have to create a QA report regarding callers calling into a phone
hotline.

The report consists of many checkboxes such as:

Did the IBCCP agency contact you? Yes/NO
How many days passed before you heard from the agency? 1Week/2Weeks/3
or More Weeks
Did you become an IBCCP client? Yes/NO/Dont Know

I thought it best to use the Caller ID to help me group responses?

How best do I go about counting the respective checkboxes?

Thanks!

John
Sep 17 '08 #1
14 3628

"zufie" <jo***********@ illinois.govwro te in message
news:1b******** *************** ***********@p25 g2000hsf.google groups.com...
I have to create a QA report regarding callers calling into a phone
hotline.

The report consists of many checkboxes such as:

Did the IBCCP agency contact you? Yes/NO
How many days passed before you heard from the agency? 1Week/2Weeks/3
or More Weeks
Did you become an IBCCP client? Yes/NO/Dont Know

I thought it best to use the Caller ID to help me group responses?

How best do I go about counting the respective checkboxes?

Thanks!

John

1) How did you organize your table?
Are all the checkboxes in one row with the Caller ID like a spreadsheet?
CallerID R1 R2 R3 ........ R50

Or did you normalize and put one checkbox per row?
CallerID QuestionID Response

2) What are you counting?
Number of Yes responses per Caller ID
Number of times a response was true, false or NULL for all Caller IDs


Sep 17 '08 #2
On Sep 17, 3:07*pm, "paii, Ron" <n...@no.comwro te:
"zufie" <john.marru...@ illinois.govwro te in message

news:1b******** *************** ***********@p25 g2000hsf.google groups.com...


I have to create a QA report regarding callers calling into a phone
hotline.
The report consists of many checkboxes such as:
Did the IBCCP agency contact you? Yes/NO
How many days passed before you heard from the agency? 1Week/2Weeks/3
or More Weeks
Did you become an IBCCP client? Yes/NO/Dont Know
I thought it best to use the Caller ID to help me group responses?
How best do I go about counting the respective checkboxes?
Thanks!
John

1) How did you organize your table?
Are all the checkboxes in one row with the Caller ID like a spreadsheet? Yes
CallerID * R1 *R2 *R3 ........ R50

Or did you normalize and put one checkbox per row? No
CallerID QuestionID *Response

2) What are you counting?
Number of Yes responses per Caller ID Yes
Number of times a response was true, *false or NULL for all Caller IDs-Hide quoted text -
Counting the number of times a response was Yes, No, Don't Know

I then have to calculate the percent of callers that responded Yes,
No, Don't Know

Thanks,
John

- Show quoted text -
Sep 17 '08 #3
On Sep 17, 3:18*pm, zufie <john.marru...@ illinois.govwro te:
On Sep 17, 3:07*pm, "paii, Ron" <n...@no.comwro te:
"zufie" <john.marru...@ illinois.govwro te in message
news:1b******** *************** ***********@p25 g2000hsf.google groups.com....
I have to create a QA report regarding callers calling into a phone
hotline.
The report consists of many checkboxes such as:
Did the IBCCP agency contact you? Yes/NO
How many days passed before you heard from the agency? 1Week/2Weeks/3
or More Weeks
Did you become an IBCCP client? Yes/NO/Dont Know
I thought it best to use the Caller ID to help me group responses?
How best do I go about counting the respective checkboxes?
Thanks!
John
1) How did you organize your table?
Are all the checkboxes in one row with the Caller ID like a spreadsheet? *Yes
CallerID * R1 *R2 *R3 ........ R50
Or did you normalize and put one checkbox per row? No
CallerID QuestionID *Response
2) What are you counting?
Number of Yes responses per Caller ID Yes
Number of times a response was true, *false or NULL for all Caller IDs- Hide quoted text -

Counting the number of times a response was Yes, No, Don't Know

I then have to calculate the percent of callers that responded Yes,
No, Don't Know

Thanks,
John
- Show quoted text -- Hide quoted text -

- Show quoted text -- Hide quoted text -

- Show quoted text -
How did you organize your table?
Are all the checkboxes in one row with the Caller ID like a
spreadsheet? Yes, all the checkboxes in one row with the Caller ID
like a spreadsheet
CallerID R1 R2 R3 ........ R50

Or did you normalize and put one checkbox per row? I didn't normalize.
That is, there is more than one checkbox per row
CallerID QuestionID Response

Thanks,
John

Sep 17 '08 #4
On Sep 17, 3:21*pm, zufie <john.marru...@ illinois.govwro te:
On Sep 17, 3:18*pm, zufie <john.marru...@ illinois.govwro te:


On Sep 17, 3:07*pm, "paii, Ron" <n...@no.comwro te:
"zufie" <john.marru...@ illinois.govwro te in message
>news:1b******* *************** ************@p2 5g2000hsf.googl egroups.com....
I have to create a QA report regarding callers calling into a phone
hotline.
The report consists of many checkboxes such as:
Did the IBCCP agency contact you? Yes/NO
How many days passed before you heard from the agency? 1Week/2Weeks/3
or More Weeks
Did you become an IBCCP client? Yes/NO/Dont Know
I thought it best to use the Caller ID to help me group responses?
How best do I go about counting the respective checkboxes?
Thanks!
John
1) How did you organize your table?
Are all the checkboxes in one row with the Caller ID like a spreadsheet? *Yes
CallerID * R1 *R2 *R3 ........ R50
Or did you normalize and put one checkbox per row? No
CallerID QuestionID *Response
2) What are you counting?
Number of Yes responses per Caller ID Yes
Number of times a response was true, *false or NULL for all Caller IDs- Hide quoted text -
Counting the number of times a response was Yes, No, Don't Know
I then have to calculate the percent of callers that responded Yes,
No, Don't Know
Thanks,
John
- Show quoted text -- Hide quoted text -
- Show quoted text -- Hide quoted text -
- Show quoted text -

How did you organize your table?
Are all the checkboxes in one row with the Caller ID like a
spreadsheet? Yes, all the checkboxes in one row with the Caller ID
like a spreadsheet
CallerID * R1 *R2 *R3 ........ R50

Or did you normalize and put one checkbox per row? I didn't normalize.
That is, there is more than one checkbox per row
CallerID QuestionID *Response

Thanks,
John- Hide quoted text -

- Show quoted text -
That is, the checkboxes for Yes, No, Don't Know for a particular
question are listed on the same row in the datasheet view (spreadsheet
view).

Thanks,
John
Sep 17 '08 #5

"zufie" <jo***********@ illinois.govwro te in message
news:65******** *************** ***********@l43 g2000hsh.google groups.com...
On Sep 17, 3:21 pm, zufie <john.marru...@ illinois.govwro te:
On Sep 17, 3:18 pm, zufie <john.marru...@ illinois.govwro te:


On Sep 17, 3:07 pm, "paii, Ron" <n...@no.comwro te:
"zufie" <john.marru...@ illinois.govwro te in message
news:1b******* *************** ************@p2 5g2000hsf.googl egroups.com...
I have to create a QA report regarding callers calling into a phone
hotline.
The report consists of many checkboxes such as:
Did the IBCCP agency contact you? Yes/NO
How many days passed before you heard from the agency?
1Week/2Weeks/3
or More Weeks
Did you become an IBCCP client? Yes/NO/Dont Know
I thought it best to use the Caller ID to help me group responses?
How best do I go about counting the respective checkboxes?
Thanks!
John
1) How did you organize your table?
Are all the checkboxes in one row with the Caller ID like a
spreadsheet? Yes
CallerID R1 R2 R3 ........ R50
Or did you normalize and put one checkbox per row? No
CallerID QuestionID Response
2) What are you counting?
Number of Yes responses per Caller ID Yes
Number of times a response was true, false or NULL for all Caller IDs-
Hide quoted text -
>
Counting the number of times a response was Yes, No, Don't Know
I then have to calculate the percent of callers that responded Yes,
No, Don't Know
Thanks,
John
- Show quoted text -- Hide quoted text -
- Show quoted text -- Hide quoted text -
- Show quoted text -

How did you organize your table?
Are all the checkboxes in one row with the Caller ID like a
spreadsheet? Yes, all the checkboxes in one row with the Caller ID
like a spreadsheet
CallerID R1 R2 R3 ........ R50

Or did you normalize and put one checkbox per row? I didn't normalize.
That is, there is more than one checkbox per row
CallerID QuestionID Response

Thanks,
John- Hide quoted text -

- Show quoted text -
That is, the checkboxes for Yes, No, Don't Know for a particular
question are listed on the same row in the datasheet view (spreadsheet
view).

Thanks,
John

Is there more then 1 question per row?
Please post the table structure

Try a summation query to get percent of times a question was answered true.
Sep 17 '08 #6
If what you need is a total for the Yes/No fields in one row, you can use
the IIF function in combination with the Sum function to give a total.
It would be something like this:

=Sum(IIF(YesNo1 ,1,0),IIF(YesNo 2,1,0),IIF(YesN o3,1,0), ... ,IIF
(YesNoN,1,0))

IIF has three arguments: 1) the expression to evaluate, 2) the result to
return if true, and 3) the result to return if false). In this case,
each IIF evaluates to 1 if the field is true, i.e. the box is checked,
and to 0 if it is not. Sum adds them together to return your result.

Otherwise, if what you need is a total of the Yes/Nos for the whole
table, you can put the function above into an aggregate query and sum it.
The function will add the Yes/Nos in each row and the query will sum them
into one total.

If neither of those is what you're looking for, give us some more detail
on what you're dealing with and what you're wanting to accomplish.

Hope this helps,

Carlos

zufie <jo***********@ illinois.govwro te in news:1b1b7f2f-7e9a-4ecc-9d8c-
7f**********@p2 5g2000hsf.googl egroups.com:
I have to create a QA report regarding callers calling into a phone
hotline.

The report consists of many checkboxes such as:

Did the IBCCP agency contact you? Yes/NO
How many days passed before you heard from the agency? 1Week/2Weeks/3
or More Weeks
Did you become an IBCCP client? Yes/NO/Dont Know

I thought it best to use the Caller ID to help me group responses?

How best do I go about counting the respective checkboxes?

Thanks!

John

Sep 17 '08 #7
On Sep 17, 5:45*pm, "Carlos Nunes-Ueno" <sulla...@athot maildot.com>
wrote:
If what you need is a total for the Yes/No fields in one row, you can use
the IIF function in combination with the Sum function to give a total. *
It would be something like this:

=Sum(IIF(YesNo1 ,1,0),IIF(YesNo 2,1,0),IIF(YesN o3,1,0), ... ,IIF
(YesNoN,1,0))

IIF has three arguments: 1) the expression to evaluate, 2) the result to
return if true, and 3) the result to return if false). *In this case,
each IIF evaluates to 1 if the field is true, i.e. the box is checked,
and to 0 if it is not. *Sum adds them together to return your result.

Otherwise, if what you need is a total of the Yes/Nos for the whole
table, you can put the function above into an aggregate query and sum it.*
The function will add the Yes/Nos in each row and the query will sum them
into one total.

If neither of those is what you're looking for, give us some more detail
on what you're dealing with and what you're wanting to accomplish.

Hope this helps,

Carlos

zufie <john.marru...@ illinois.govwro te in news:1b1b7f2f-7e9a-4ecc-9d8c-
7fde3aeb7...@p2 5g2000hsf.googl egroups.com:
I have to create a QA report regarding callers calling into a phone
hotline.
The report consists of many checkboxes such as:
Did the IBCCP agency contact you? Yes/NO
How many days passed before you heard from the agency? 1Week/2Weeks/3
or More Weeks
Did you become an IBCCP client? Yes/NO/Dont Know
I thought it best to use the Caller ID to help me group responses?
How best do I go about counting the respective checkboxes?
Thanks!
John- Hide quoted text -

- Show quoted text -

I need to count the total number of times each of the following three
checkbox responses was given:
1)Yes
2)No
3)Don't Know

I thought it best to use the Caller ID to group the responses?

Next, I need to calculate the percent of callers that checked each of
the following three checkbox responses:
1)Yes
2)No
3)Don't Know

If that, is what you meant, then we are on the same sheet of music.

If not, I hope my above message made it clearer what I meant?

Thanks!,
John

Sep 18 '08 #8
On Sep 18, 8:18*am, zufie <john.marru...@ illinois.govwro te:
On Sep 17, 5:45*pm, "Carlos Nunes-Ueno" <sulla...@athot maildot.com>
wrote:


If what you need is a total for the Yes/No fields in one row, you can use
the IIF function in combination with the Sum function to give a total. *
It would be something like this:
=Sum(IIF(YesNo1 ,1,0),IIF(YesNo 2,1,0),IIF(YesN o3,1,0), ... ,IIF
(YesNoN,1,0))
IIF has three arguments: 1) the expression to evaluate, 2) the result to
return if true, and 3) the result to return if false). *In this case,
each IIF evaluates to 1 if the field is true, i.e. the box is checked,
and to 0 if it is not. *Sum adds them together to return your result.
Otherwise, if what you need is a total of the Yes/Nos for the whole
table, you can put the function above into an aggregate query and sum it. *
The function will add the Yes/Nos in each row and the query will sum them
into one total.
If neither of those is what you're looking for, give us some more detail
on what you're dealing with and what you're wanting to accomplish.
Hope this helps,
Carlos
zufie <john.marru...@ illinois.govwro te in news:1b1b7f2f-7e9a-4ecc-9d8c-
7fde3aeb7...@p2 5g2000hsf.googl egroups.com:
I have to create a QA report regarding callers calling into a phone
hotline.
The report consists of many checkboxes such as:
Did the IBCCP agency contact you? Yes/NO
How many days passed before you heard from the agency? 1Week/2Weeks/3
or More Weeks
Did you become an IBCCP client? Yes/NO/Dont Know
I thought it best to use the Caller ID to help me group responses?
How best do I go about counting the respective checkboxes?
Thanks!
John- Hide quoted text -
- Show quoted text -

I need to count the total number of times each of the following three
checkbox responses was given:
1)Yes
2)No
3)Don't Know

I thought it best to use the Caller ID to group the responses?

Next, I need to calculate the percent of callers that checked each of
the following three checkbox responses:
1)Yes
2)No
3)Don't Know

If that, is what you meant, then we are on the same sheet of music.

If not, I hope my above message made it clearer what I meant?

Thanks!,
John- Hide quoted text -

- Show quoted text -
SORRY, I meant CHECKED:

I need to count the total number of times each of the following three
checkbox responses was CHECKED:
(That is, the total number of times the Yes check box was checked, the
total number of times the No check box was checked, the total number
of times the Don't Know check box was checked). I thought it best to
use the Caller ID to group these responses?

1)Yes
2)No
3)Don't Know

=============== =============== =============== =============== =============== ===
Next, I need to calculate the percent of callers that checked each of
the following three checkbox responses (That is, the percent of
callers checking Yes, the percent of callers checking No, the
percent of callers checking Don't Know)
1)Yes
2)No
3)Don't Know

If that, is what you meant, then we are on the same sheet of music.

If not, I hope my above message made it clearer what I meant?

Thanks!,
John
Sep 18 '08 #9
On Sep 18, 8:25*am, zufie <john.marru...@ illinois.govwro te:
On Sep 18, 8:18*am, zufie <john.marru...@ illinois.govwro te:


On Sep 17, 5:45*pm, "Carlos Nunes-Ueno" <sulla...@athot maildot.com>
wrote:
If what you need is a total for the Yes/No fields in one row, you canuse
the IIF function in combination with the Sum function to give a total.. *
It would be something like this:
=Sum(IIF(YesNo1 ,1,0),IIF(YesNo 2,1,0),IIF(YesN o3,1,0), ... ,IIF
(YesNoN,1,0))
IIF has three arguments: 1) the expression to evaluate, 2) the resultto
return if true, and 3) the result to return if false). *In this case,
each IIF evaluates to 1 if the field is true, i.e. the box is checked,
and to 0 if it is not. *Sum adds them together to return your result.
Otherwise, if what you need is a total of the Yes/Nos for the whole
table, you can put the function above into an aggregate query and sumit. *
The function will add the Yes/Nos in each row and the query will sum them
into one total.
If neither of those is what you're looking for, give us some more detail
on what you're dealing with and what you're wanting to accomplish.
Hope this helps,
Carlos
zufie <john.marru...@ illinois.govwro te in news:1b1b7f2f-7e9a-4ecc-9d8c-
7fde3aeb7...@p2 5g2000hsf.googl egroups.com:
I have to create a QA report regarding callers calling into a phone
hotline.
The report consists of many checkboxes such as:
Did the IBCCP agency contact you? Yes/NO
How many days passed before you heard from the agency? 1Week/2Weeks/3
or More Weeks
Did you become an IBCCP client? Yes/NO/Dont Know
I thought it best to use the Caller ID to help me group responses?
How best do I go about counting the respective checkboxes?
Thanks!
John- Hide quoted text -
- Show quoted text -
I need to count the total number of times each of the following three
checkbox responses was given:
1)Yes
2)No
3)Don't Know
I thought it best to use the Caller ID to group the responses?
Next, I need to calculate the percent of callers that checked each of
the following three checkbox responses:
1)Yes
2)No
3)Don't Know
If that, is what you meant, then we are on the same sheet of music.
If not, I hope my above message made it clearer what I meant?
Thanks!,
John- Hide quoted text -
- Show quoted text -

SORRY, I meant CHECKED:

I need to count the total number of times each of the following three
checkbox responses was CHECKED:
(That is, the total number of times the Yes check box was checked, the
total number of times the No check box was checked, the total number
of times the Don't Know check box was checked). I thought it best to
use the Caller ID to group these responses?

1)Yes
2)No
3)Don't Know

=============== =============== =============== =============== =============== *===
Next, I need to calculate the percent of callers that checked each of
the following three checkbox responses (That is, the percent of
callers checking Yes, *the percent of callers checking No, *the
percent of callers checking Don't Know)
1)Yes
2)No
3)Don't Know

If that, is what you meant, then we are on the same sheet of music.

If not, I hope my above message made it clearer what I meant?

Thanks!,
John- Hide quoted text -

- Show quoted text -
Ok, I now have a sum of the Yes checkbox responses & now have a sum of
the No checkbox responses.

However, the sums are negative numbers. How can I change these sums to
positive numbers?

I tried changing the sums to positive numbers in a query, in a form,
and in a report...all without success!

Here is my SQL code for my query:

SELECT DISTINCTROW Sum([IBCCP Referral Query].[MinOfAgencyCont actYes])
AS [Sum Of MinOfAgencyCont actYes], Sum([IBCCP Referral Query].
[MinOfAgencyCont actNo]) AS [Sum Of MinOfAgencyCont actNo]
FROM [IBCCP Referral Query];

Any suggestions as how to change these sums to positive numbers?

Thanks!
John
Sep 18 '08 #10

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

Similar topics

2
3954
by: Pete | last post by:
There is a Summary/Example further down... On page one of my site I have a form with some checkboxes and detailed descriptions. When the form is submitted (to page two), the values of the checkboxes are picked up using $_POST and put into session variables. On page two there is another form which is simply a condensed version of the...
4
2967
by: Pete | last post by:
Okay, I'm still stuck with this problem. Here's a quick recap/summary :- 1. Page 1:User checks 3 out of 10 checkboxes and submits form to page 2 2. Page 2:Item count shows 3 items. User checks an additional 2 checkboxes and presses Update button. Item count now shows 5 checkboxes are checked and "New" checkboxes remain checked. 3. Page...
1
3682
by: Hunter | last post by:
Hi group - I'm using php to extract data from postgres and print to browser. I have data that was input through checkboxes on a form - each checkbox had a different value but got pushed into the same column. So - my values look like this: surveys=# select distinct(additionaldeliverablearray) from csssurvey; additionaldeliverablearray...
10
1946
by: suzy | last post by:
i have generated a list of checkboxes (at runtime) using the checkboxlist control. i want to add an onclick event onto each checkbox so i can perform a count of how many items have been selected every time a checkbox is clicked. how can i do this? remember, the checkboxes are generated at runtime. thanks
0
1497
by: dcs | last post by:
I created basic MS Access form, which allows me to log procedures by clicking checkboxes. I need to submit a total or count of my procedures and I would like to create a report in order to do this. I have tried to create query "group by" the field, and also "count" the same field but gives me a -1 value; I also tried Create new columns and place...
1
4135
by: babu17 | last post by:
hi, i have a list of checkboxes, the number of checkboxes is dynamic. All the checkboxes have same name. i am trying to get the length of selected checkboxes. <input type=checkbox name=name1 value=1> <input type=checkbox name=name1 value=2> ........ get dynamically. when i try to get the length in javascript like
4
22836
by: haresh.amis | last post by:
hello to all, I m using .net 2.0 and i face a problem that is as under Well I have a checkboxlist which i bound in .cs page now I want to count that how many checkboxes ate checked ( In javascript ) and checked checkboxes text will be concat and that string will be pass on to report query I m trying on by this code but it's not work
2
6959
by: darkminos | last post by:
Hi, I have the following code int countCheckState = 0 for (int i = 0; i < CheckboxList.Count; i++) { if (CheckboxList.Checked) countCheckState++ if (countCheckState == 0)
6
3800
by: BeaBea | last post by:
Hi All, I am trying to set up a report based on a Select Query. I need to do a count based on four different fields. Field 1: Product Type (text field - 5 different products) Field 2: Claim type (text field - 2 different claim types) Field 3. ysnApproved (Checkbox) Field 4: ysnNonComp (Checkbox) I am trying to get a count of each...
0
7478
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7410
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...
0
7668
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, 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. ...
1
7437
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...
0
5984
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
4960
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...
0
3466
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...
0
3448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1025
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.