Mensaje
De
29/03/2000 17:42:17
 
 
a
29/03/2000 15:35:12
Ken Mears
Calif Dept of Fish & Game
Sacramento, California, United States
General information
Foro:
Visual FoxPro
Category:
Informes & Diseñador de informes
Título:
Miscellaneous
ID de la conversación:
00352354
ID del mensaje:
00352450
Views:
11
Ken,

>I have a report I'm doing on students. On the group footer line I have their average score, lowest, and highest score. I'm trying to count the number of students who passed (field passfail = "YES"), and failed (field passfail = "NO ") . What I'm getting is the total number of students in each age group. I place the field on the report, go to properties, place 'passfail.passfail= "Yes"' in the expression, go to calculations, select count, reset when age changes.

You need SUM, not COUNT, and your expression should evaluate to a numeric value, so you could make it IIF(passfail.passfail='YES', 1, 0). I did not take time to test this before posting, so let me know if it does not do the trick.
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Previous
Next
Responder
Mapa
Ver