Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Varaible and counting question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01043970
Message ID:
01044084
Vues:
13
>I have a report, where all the data is printed in a group header and nothing in the details.
>
>This is because the query will return mutliple records per person, but they only want the first record for the person to print. Now I need to add a total count to print at the bottom of the report. Basicly every time a group header prints, I need to increment a report variable by one. Anybody know the best way to do that?

It sounds like a (dirty or smart) trick to me. Why not do an additional sql-select before calling the report?! In the sql statement you select only the persons' top record. Having done so, you can use the details band and print the totals in the summary band.
Groet,
Peter de Valença

Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform