PC Review


Reply
Thread Tools Rate Thread

Summing Check Boxes

 
 
Practical Mystic
Guest
Posts: n/a
 
      30th Jun 2006
I have a Form with a Check Box. I would like to have a Report of how many
Record Entries in this Form had a check in the box. What kind of code or
entry would I use to do this and where would I put it?

Thanks for all your help.


 
Reply With Quote
 
 
 
 
Duane Hookom
Guest
Posts: n/a
 
      30th Jun 2006
Small correction, forms don't contain data. Forms display records from a
table. To display a "count" of checked boxes (yes/true/-1 values), you can
add a control in a group or report header or footer with a control source
like:

=Sum(Abs([YourFieldName]))

--
Duane Hookom
MS Access MVP

"Practical Mystic" <(E-Mail Removed)> wrote in message
news:LeZog.161743$(E-Mail Removed)...
>I have a Form with a Check Box. I would like to have a Report of how many
>Record Entries in this Form had a check in the box. What kind of code or
>entry would I use to do this and where would I put it?
>
> Thanks for all your help.
>



 
Reply With Quote
 
 
 
 
Practical Mystic
Guest
Posts: n/a
 
      30th Jun 2006
Sorry about the confusion. The Check Box is linked to Binary Field in a
Table in the same database. The field Name is HoldOver and the Table is
Booking_Form.

Users either check the box if the condition described by the Label exists or
leave it blank for an implied NO. I need to be able to report the occurences
of a Yes.

"Duane Hookom" <DuaneAtNoSpanHookomDotNet> wrote in message
news:uhhl8h%(E-Mail Removed)...
> Small correction, forms don't contain data. Forms display records from a
> table. To display a "count" of checked boxes (yes/true/-1 values), you can
> add a control in a group or report header or footer with a control source
> like:
>
> =Sum(Abs([YourFieldName]))
>
> --
> Duane Hookom
> MS Access MVP
>
> "Practical Mystic" <(E-Mail Removed)> wrote in message
> news:LeZog.161743$(E-Mail Removed)...
>>I have a Form with a Check Box. I would like to have a Report of how many
>>Record Entries in this Form had a check in the box. What kind of code or
>>entry would I use to do this and where would I put it?
>>
>> Thanks for all your help.
>>

>
>



 
Reply With Quote
 
Duane Hookom
Guest
Posts: n/a
 
      30th Jun 2006
My answer stands as presented. Did you try it?
--
Duane Hookom
MS Access MVP

"Practical Mystic" <(E-Mail Removed)> wrote in message
news:0a0pg.31198$(E-Mail Removed)...
> Sorry about the confusion. The Check Box is linked to Binary Field in a
> Table in the same database. The field Name is HoldOver and the Table is
> Booking_Form.
>
> Users either check the box if the condition described by the Label exists
> or leave it blank for an implied NO. I need to be able to report the
> occurences of a Yes.
>
> "Duane Hookom" <DuaneAtNoSpanHookomDotNet> wrote in message
> news:uhhl8h%(E-Mail Removed)...
>> Small correction, forms don't contain data. Forms display records from a
>> table. To display a "count" of checked boxes (yes/true/-1 values), you
>> can add a control in a group or report header or footer with a control
>> source like:
>>
>> =Sum(Abs([YourFieldName]))
>>
>> --
>> Duane Hookom
>> MS Access MVP
>>
>> "Practical Mystic" <(E-Mail Removed)> wrote in message
>> news:LeZog.161743$(E-Mail Removed)...
>>>I have a Form with a Check Box. I would like to have a Report of how many
>>>Record Entries in this Form had a check in the box. What kind of code or
>>>entry would I use to do this and where would I put it?
>>>
>>> Thanks for all your help.
>>>

>>
>>

>
>



 
Reply With Quote
 
=?Utf-8?B?VGFuaw==?=
Guest
Posts: n/a
 
      4th Jul 2006
You can use expressions in text boxes to calculate the number of Yes or No
responses and include the Sum() function to produce a sum total. The
following expressions can be used in a report group's footers or in the
report footer to count the number of occurrences of Yes and No in a field
whose data type is Yes/No and whose filed name is "Holdover".

This expression Sums this:
=Sum(iif([Holdover],1,0)) Number of Yes responses
=Sum(iif([Holderover],0,1)) Number of No responses

Hope this helps.

"Practical Mystic" wrote:

> Sorry about the confusion. The Check Box is linked to Binary Field in a
> Table in the same database. The field Name is HoldOver and the Table is
> Booking_Form.
>
> Users either check the box if the condition described by the Label exists or
> leave it blank for an implied NO. I need to be able to report the occurences
> of a Yes.
>
> "Duane Hookom" <DuaneAtNoSpanHookomDotNet> wrote in message
> news:uhhl8h%(E-Mail Removed)...
> > Small correction, forms don't contain data. Forms display records from a
> > table. To display a "count" of checked boxes (yes/true/-1 values), you can
> > add a control in a group or report header or footer with a control source
> > like:
> >
> > =Sum(Abs([YourFieldName]))
> >
> > --
> > Duane Hookom
> > MS Access MVP
> >
> > "Practical Mystic" <(E-Mail Removed)> wrote in message
> > news:LeZog.161743$(E-Mail Removed)...
> >>I have a Form with a Check Box. I would like to have a Report of how many
> >>Record Entries in this Form had a check in the box. What kind of code or
> >>entry would I use to do this and where would I put it?
> >>
> >> Thanks for all your help.
> >>

> >
> >

>
>
>

 
Reply With Quote
 
Practical Mystic
Guest
Posts: n/a
 
      7th Jul 2006
I can't find my reply from the other day, so I'm reposting.

Yes, I tried summing the absolute value and still got a non-numeric answer,

I need a step-by-step answer on how to set this, please.


"Duane Hookom" <DuaneAtNoSpanHookomDotNet> wrote in message
news:%23y2x2u$(E-Mail Removed)...
> My answer stands as presented. Did you try it?
> --
> Duane Hookom
> MS Access MVP
>
> "Practical Mystic" <(E-Mail Removed)> wrote in message
> news:0a0pg.31198$(E-Mail Removed)...
>> Sorry about the confusion. The Check Box is linked to Binary Field in a
>> Table in the same database. The field Name is HoldOver and the Table is
>> Booking_Form.
>>
>> Users either check the box if the condition described by the Label exists
>> or leave it blank for an implied NO. I need to be able to report the
>> occurences of a Yes.
>>
>> "Duane Hookom" <DuaneAtNoSpanHookomDotNet> wrote in message
>> news:uhhl8h%(E-Mail Removed)...
>>> Small correction, forms don't contain data. Forms display records from a
>>> table. To display a "count" of checked boxes (yes/true/-1 values), you
>>> can add a control in a group or report header or footer with a control
>>> source like:
>>>
>>> =Sum(Abs([YourFieldName]))
>>>
>>> --
>>> Duane Hookom
>>> MS Access MVP
>>>
>>> "Practical Mystic" <(E-Mail Removed)> wrote in message
>>> news:LeZog.161743$(E-Mail Removed)...
>>>>I have a Form with a Check Box. I would like to have a Report of how
>>>>many Record Entries in this Form had a check in the box. What kind of
>>>>code or entry would I use to do this and where would I put it?
>>>>
>>>> Thanks for all your help.
>>>>
>>>
>>>

>>
>>

>
>
>



 
Reply With Quote
 
Duane Hookom
Guest
Posts: n/a
 
      7th Jul 2006
Try a text box in a group or report header or footer with a control source
of:
=Sum(Abs( HoldOver = -1) )

--
Duane Hookom
MS Access MVP

"Practical Mystic" <(E-Mail Removed)> wrote in message
news1jrg.116616$(E-Mail Removed)...
>I can't find my reply from the other day, so I'm reposting.
>
> Yes, I tried summing the absolute value and still got a non-numeric
> answer,
>
> I need a step-by-step answer on how to set this, please.
>
>
> "Duane Hookom" <DuaneAtNoSpanHookomDotNet> wrote in message
> news:%23y2x2u$(E-Mail Removed)...
>> My answer stands as presented. Did you try it?
>> --
>> Duane Hookom
>> MS Access MVP
>>
>> "Practical Mystic" <(E-Mail Removed)> wrote in message
>> news:0a0pg.31198$(E-Mail Removed)...
>>> Sorry about the confusion. The Check Box is linked to Binary Field in a
>>> Table in the same database. The field Name is HoldOver and the Table is
>>> Booking_Form.
>>>
>>> Users either check the box if the condition described by the Label
>>> exists or leave it blank for an implied NO. I need to be able to report
>>> the occurences of a Yes.
>>>
>>> "Duane Hookom" <DuaneAtNoSpanHookomDotNet> wrote in message
>>> news:uhhl8h%(E-Mail Removed)...
>>>> Small correction, forms don't contain data. Forms display records from
>>>> a table. To display a "count" of checked boxes (yes/true/-1 values),
>>>> you can add a control in a group or report header or footer with a
>>>> control source like:
>>>>
>>>> =Sum(Abs([YourFieldName]))
>>>>
>>>> --
>>>> Duane Hookom
>>>> MS Access MVP
>>>>
>>>> "Practical Mystic" <(E-Mail Removed)> wrote in message
>>>> news:LeZog.161743$(E-Mail Removed)...
>>>>>I have a Form with a Check Box. I would like to have a Report of how
>>>>>many Record Entries in this Form had a check in the box. What kind of
>>>>>code or entry would I use to do this and where would I put it?
>>>>>
>>>>> Thanks for all your help.
>>>>>
>>>>
>>>>
>>>
>>>

>>
>>
>>

>
>



 
Reply With Quote
 
Practical Mystic
Guest
Posts: n/a
 
      8th Jul 2006
Thanks, Tank, this is what finally worked for me. I wanted to dance when it
finally all came together! It was the last piece to finish the project up.

Thanks also, Duane. I appreciate your taking time to answer and give me some
ideas to try.

K


"Tank" <(E-Mail Removed)> wrote in message
news:39EED178-A5DF-46D0-A020-(E-Mail Removed)...
> You can use expressions in text boxes to calculate the number of Yes or No
> responses and include the Sum() function to produce a sum total. The
> following expressions can be used in a report group's footers or in the
> report footer to count the number of occurrences of Yes and No in a field
> whose data type is Yes/No and whose filed name is "Holdover".
>
> This expression Sums this:
> =Sum(iif([Holdover],1,0)) Number of Yes responses
> =Sum(iif([Holderover],0,1)) Number of No responses
>
> Hope this helps.
>
> "Practical Mystic" wrote:
>
>> Sorry about the confusion. The Check Box is linked to Binary Field in a
>> Table in the same database. The field Name is HoldOver and the Table is
>> Booking_Form.
>>
>> Users either check the box if the condition described by the Label exists
>> or
>> leave it blank for an implied NO. I need to be able to report the
>> occurences
>> of a Yes.
>>
>> "Duane Hookom" <DuaneAtNoSpanHookomDotNet> wrote in message
>> news:uhhl8h%(E-Mail Removed)...
>> > Small correction, forms don't contain data. Forms display records from
>> > a
>> > table. To display a "count" of checked boxes (yes/true/-1 values), you
>> > can
>> > add a control in a group or report header or footer with a control
>> > source
>> > like:
>> >
>> > =Sum(Abs([YourFieldName]))
>> >
>> > --
>> > Duane Hookom
>> > MS Access MVP
>> >
>> > "Practical Mystic" <(E-Mail Removed)> wrote in message
>> > news:LeZog.161743$(E-Mail Removed)...
>> >>I have a Form with a Check Box. I would like to have a Report of how
>> >>many
>> >>Record Entries in this Form had a check in the box. What kind of code
>> >>or
>> >>entry would I use to do this and where would I put it?
>> >>
>> >> Thanks for all your help.
>> >>
>> >
>> >

>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Search Check Boxes on a Form Using Check boxes on a search Form rsw1984 Microsoft Access VBA Modules 16 29th Aug 2008 08:50 PM
Show check boxes which arn't blank, hide check boxes which are bla Accessorise Microsoft Access Forms 1 12th Jun 2008 08:29 AM
Make check boxes look like radio check boxes? AAaron123 Microsoft VB .NET 2 24th Apr 2008 02:24 AM
Summing Check Boxes Practical Mystic Microsoft Access Form Coding 7 8th Jul 2006 04:32 AM
One Check box to check all check boxes =?Utf-8?B?TWFyayBTZW5pYmFsZGk=?= Microsoft Access Forms 2 12th Apr 2005 04:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:11 PM.