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

Access Report: Counting Yes and No Fields

Status
Not open for further replies.

literacyteacher

Instructor
Feb 28, 2009
2
US
Hi

I have a database that tracks students attendance. In a report, i having trouble with a formula to count "present" students

i thought it will be

=Count ([present]) but it is not working correctly. Please help!

Thanks in advance

Stephen
 
Count() will return a count of all non-null values. Both yes and no are not null. Counting True values is the same as summing the absolute value of the field. Try:

Code:
  =Sum(Abs([Present]))

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

Part and Inventory Search

Sponsor

Back
Top