Re: Syntax for total text box in footer?



Try
=Abs(Sum([Recommend]))

How it works
A Check box has a value of 0 (unchecked) or -1 (Checked). So we sum the
values and get a negative number for all the boxes that are checked. We use
the Abs function (absolute value) to get rid of the negative sign.

Count counts the presence of a value. The only time Count does not count
something is if the value is NULL. Since 0 and -1 are both values you get a
count of the number of checkboxes. You could count the checks with this
statement

=Count(IIF([Recommend] = True, 1,Null))
amd the non-checks with
=Count(IIF([Recommend] = False, 1,Null))

--
John Spencer
Access MVP 2002-2005, 2007-2008
Center for Health Program Development and Management
University of Maryland Baltimore County
..

"CW" <CW@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:DCFEBB76-3E7C-4359-AC44-14C9474EBDB0@xxxxxxxxxxxxxxxx
I have a report that shows the results of our customer satisfaction
questionnaires.
One of the fields is "Recommend" and the value is a Y/N checkbox.
I want to create a textbox in the report footer that counts the number of
entries where the Recommend value is Y.
I have tried entering this as the control source:
=Count([Recommend]="Y")
which I thought seemed a reasonable attempt, but no good.
Would be very grateful for your advice
Many thanks
CW


.



Relevant Pages

  • Re: OT: Colour Laser Printers
    ... >> Anyone got one at home they can recommend? ... I'm looking at getting rid ... > Lovely wee thing and it does what it says on the tin. ... Dunno how much ...
    (uk.rec.motorcycles)
  • Re: OT: Colour Laser Printers
    ... > Anyone got one at home they can recommend? ... I'm looking at getting rid ... > of the inkjet in favour of a laser and was surprised at the relatively ...
    (uk.rec.motorcycles)
  • Re: ADW Minibug.A
    ... | Apparently I did not use the SpyBot site you recommend. ... | be legit and they did ask for payment in order to get rid of the unwanted ... | Every now and then I get a suggestion to use a Registry Cleaner or rather to ...
    (alt.comp.anti-virus)
  • Re: OT: Colour Laser Printers
    ... > Anyone got one at home they can recommend? ... I'm looking at getting rid ... > of the inkjet in favour of a laser and was surprised at the relatively ...
    (uk.rec.motorcycles)
  • Re: theme and background change
    ... you may have a version of the VERY tough to ... remove Look2Me virus. ... I recommend visiting Merijn.org, they have a huge ... collection of specialized free apps to get rid of specific hardy ...
    (microsoft.public.windowsxp.customize)