need percent based on DCount

C

CBeavers

I'm using this formula in a report footer to obtain the count of scores
greater than 3.
=DCount("[RhymeBOYK]","qryTPRIKinderBOYCurrentYear","[RhymeBOYK]>3")

I then need to get a percentage of this dcount to the total of Count([StuID]).
 
J

John Spencer

You should be able to use an expression in a control in the report
footer like the following.

=Count(IIF(RhymeBOYK>3,1,Null))/Count(STUID)

That assumes that RHYMEBOYK is a field in the report's record source and
that there is only one record per student in the report.



'====================================================
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
'====================================================
 
C

CBeavers

Thank you! That worked!

John Spencer said:
You should be able to use an expression in a control in the report
footer like the following.

=Count(IIF(RhymeBOYK>3,1,Null))/Count(STUID)

That assumes that RHYMEBOYK is a field in the report's record source and
that there is only one record per student in the report.



'====================================================
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
'====================================================

I'm using this formula in a report footer to obtain the count of scores
greater than 3.
=DCount("[RhymeBOYK]","qryTPRIKinderBOYCurrentYear","[RhymeBOYK]>3")

I then need to get a percentage of this dcount to the total of Count([StuID]).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top