DCount Function (1 Viewer)

Petersen

Registered User.
Local time
Today, 10:22
Joined
Jan 31, 2000
Messages
10
I’m trying to sum the number of “Yes’s” in a Yes/No field on a report.

1) In the footer of the report I created an unbound text field
2) I then went to Properties, Control Source, and typed in the DCount function as follows: =DCount([FieldName],”-1”) … no luck …

I’m confused. Any help will be appreciated.
 

Fornatian

Dim Person
Local time
Today, 10:22
Joined
Sep 1, 2000
Messages
1,396
Try this or similar syntax:
To count yes's
=sum(iif(Me![Myfieldname]="Yes",1,0))
To count no's
=sum(iif(Me![Myfieldname]="No",1,0))
This should work.

Ian
 

Users who are viewing this thread

Top Bottom