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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

? Regarding count on control...

Status
Not open for further replies.

3Mark3

Technical User
Nov 30, 2005
48
US
Hello everyone.
I have a problem I'm Trying to resolve. I have a control in a report called [Completed]. I have, at the bottom of my report footer, a count for that control.

The range of values in this control is either "yes" or "no". I can't seem to count these individually. Can someone help me? Here's how their setup (which isn't working, it's counting everything.).

=Count([completed]=No)
=Count([completed]=Yes)

Am I doing something wrong?
 
for no:
=Sum(IIf(Completed=No,1,0))

yes:
=Sum(IIf(Completed=Yes,1,0))

-Pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top