Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Counts for Group Header
Message
De
22/04/1999 16:23:39
 
 
À
22/04/1999 16:16:07
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00211279
Message ID:
00211288
Vues:
25
If you are using the report writer there is a neat trick you can do with an immediate if statement.

Add a field to the bottom of your report (in the summary band)
Under calculations, click on SUM
make the expression something like iif(field = value, 1, 0)

what happens is that as the report is run, whenever the condition is true, it sums in a 1, when it is false, it sums in a 0.

>Hello. I have only been working with 2.6 for about 6 weeks so my questions are very much on the beginners level. I am writing a report in which I want to count the number of records in a group given a certain criteria. I know the format is COUNT TO FOR but I am not sure how to implement this in the group header. I have tried calling a separate program with this as part of the code in the header itself, but get an operator/operand mismatch error. How do I simply count and display the number of records in a group in the group header? Then for a certain criteria? Any help would be greatly appreciated for this beginner!!
--Todd Sherman
-Wake Up! Smell the Coffee!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform