Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Report Problems
Message
De
29/03/2000 17:42:17
 
 
À
29/03/2000 15:35:12
Ken Mears
Calif Dept of Fish & Game
Sacramento, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Divers
Thread ID:
00352354
Message ID:
00352450
Vues:
9
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform