A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Counting Yes/No Fields in Reports



 
 
Thread Tools Display Modes
  #1  
Old November 19th, 2005, 12:17 AM posted to microsoft.public.access.reports
external usenet poster
 
Posts: n/a
Default Counting Yes/No Fields in Reports

I need help in getting my report to count yes/no fields from my query. I need
the count to ignore the no or nulls and count only the yes. I have created an
unbound text box in the report footer with the follwing expression -
=Count([PassFail]) Is Not Null Or Not False - Where the field is PassFail and
if it is checked that indicates a fail. What you can not see in my example
below are the yes/no fields under Selected for Audit, Fail, and Coaching
Opportunity. The above expression returns a -1 in Total Failed when it should
read 1.

OP ID Month Selected Fail Audited By Coaching Comments Dept
Reviewed for Audit Opportunity
IO004E 01/01/2005 AVC
RA ANDY
IO004E 01/01/2005 AVC
DNA ANDY
IO004E 01/01/2005 AVC
A ANDY
Total Selected for Audit 3
Total Failed -1

Any help would be greatly appreciated.
--
Michael
  #2  
Old November 19th, 2005, 12:27 AM posted to microsoft.public.access.reports
external usenet poster
 
Posts: n/a
Default Counting Yes/No Fields in Reports

On Fri, 18 Nov 2005 16:17:01 -0800, Michael_100 wrote:

I need help in getting my report to count yes/no fields from my query. I need
the count to ignore the no or nulls and count only the yes. I have created an
unbound text box in the report footer with the follwing expression -
=Count([PassFail]) Is Not Null Or Not False - Where the field is PassFail and
if it is checked that indicates a fail. What you can not see in my example
below are the yes/no fields under Selected for Audit, Fail, and Coaching
Opportunity. The above expression returns a -1 in Total Failed when it should
read 1.

OP ID Month Selected Fail Audited By Coaching Comments Dept
Reviewed for Audit Opportunity
IO004E 01/01/2005 AVC
RA ANDY
IO004E 01/01/2005 AVC
DNA ANDY
IO004E 01/01/2005 AVC
A ANDY
Total Selected for Audit 3
Total Failed -1

Any help would be greatly appreciated.


In the report footer (not the page footer) you can use:
=ABS(Sum([PassFail]))
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Table design problem? Melissa Database Design 29 November 18th, 2005 04:14 AM
counting true fields chk General Discussion 5 August 31st, 2005 07:53 PM
Fields in reports Dr Alok Modi MD Setting Up & Running Reports 11 May 14th, 2005 02:54 AM
table with a series (20 ) off yes/no fields barret bonden Running & Setting Up Queries 0 November 16th, 2004 11:21 PM
Criteria for Yes/No Fields Max General Discussion 3 August 21st, 2004 06:45 PM


All times are GMT +1. The time now is 10:02 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.