Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Data Grouping
Message
 
À
13/06/2002 05:24:24
Ed Hizon
Skswood Sdn. Bhd
Kuala Belait, Brunei
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Divers
Thread ID:
00667804
Message ID:
00667921
Vues:
31
You can do this with a report variable as follows:

1. Create a report variable called nState
2. Set the expression to 0
3. Set it to SUM
4. In the On Exit expression of the Data Group Footer, place this expression: _VFP.SetVar('nState', nState + 1)
5. In the Group Footer band, where you are printing these counts, use nState as the variable!

Cathy


>I have created a report and put in 1 group to summarize per state.
>I put one field in the group as the sequential no. so I will know right away the number of states in my report by looking at the last item. The problem is that field is counting the number of record per state which give me the wrong output on that supposed to be sequential no.
>
>Total no. of record=69
>Proposed printout
>
>Item no State Buyer
>1 California 34
>2 New York 20
>3 Texas 15
>
>
>Actual printout
>34 California 34
>20 New York 20
>15 Texas 15
>
>How can I make it to work as per proposed printout?
>
>Thanks for your help.
>
>Ed
Cathy Pountney, Microsoft Visual FoxPro MVP
Memorial Business Systems, Inc. (www.mbs-intl.com)

My Website: (www.frontier2000.com)
My Blog: (www.cathypountney.blogspot.com)
My Book: The Visual FoxPro Report Writer - Pushing it to the Limit and Beyond
Free MSDN Article: What's New in the VFP 9.0 Report Writer
Free MSDN Article: The VFP 9.0 Report Writer In Action
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform