Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Count on a report not working

Status
Not open for further replies.

lr999

Technical User
May 16, 2011
30
US
Hello

I've got to count a Verified field (yes/no) on a report which have a Funcmodule footer and a Report Footer. I need #Verified and
%Verified ; So my code =Count([Verified]) and =Count[Verified])/([Verified Grand TotalCount])
on both footers. It's not working and I can't figure out why.? Verified field comes from a form and has a check or no check in the box.
 
If verified is coming directly from the form, you need to point to the form something like:

=Count([Forms]![FormName]![Verified])
 
You also forgot an open parenthesis:

Code:
=Count[Verified])/([Verified Grand TotalCount])

Should be:

Code:
=Count[b]([/b][Verified])/([Verified Grand TotalCount])

We need more information to figure out if those are the only problems.

 
Count will count all non-null values. A yes/no field might store -1 or 0 which will both be counted.

If you want to count the Yes values, use something like:
Code:
=Sum(Abs([YourYesNoFieldNameHere]))

Duane
Hook'D on Access
MS Access MVP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top