Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Count Unique Customers in Footer
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01102497
Message ID:
01102502
Vues:
21
>I have a weekly report that details the products ordered for each day. The data is sorted by date, customer, product number. There is a footer for customer and date. But in the date footer, I want a count of the number of unique customers for that day. How can I do this?
>
>thanks
>
>Brenda

I suppose Customer group is after Date one. If so:
Put a variable in report (nUniqCust) Inital value = 0, reset value based on Date, Calculation type - None

In OnExit Event on the Customer group footer put:
_vfp.SetVar([nUniqCust], nUniqCust = nUniqCust + 1)

then in Date Group footer print that variable.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform