Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can I subgroup a summary?
Message
De
09/09/2002 15:26:29
 
 
À
09/09/2002 14:49:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00698436
Message ID:
00698465
Vues:
18
I sent you an example by email. It is quick and not very pretty, but if I understood you correctly, it should work. Basically, you would have to create a report variable for each detail type to total the amounts for each possible detail. Then display those totals (variables) in the summary band. The grand total is the easiest of course, so I did not include that in the report. You could use a print when statement in the properties and only print if the value is greater than zero. If you have a huge number of possibilities for detail items, then this would not work well. You may want to create the variables before you run the report then instead of using report variables only. I tend to use report variables whenever possible though to enable easily releasing them at the end of the report. I'm not sure what type of information your detail records are or I could try to come up with another solution. Maybe someone else will have a better idea!

I'm thinking there's gotta be a better way...

Tracy

>Yes, it could. But how do I display the information in the summary?
>
>>Wouldn't setting up report variables for each of the details do this for you?
>>>Hi all,
>>>
>>>Can I do this in VFP reports?
>>>
>>>
>>>Group1
>>>  1st Day
>>>    Detail A   10
>>>    Detail B   20
>>>Group1
>>>  2nd Day
>>>    Detail A   20
>>>    Detail C   10
>>>Summary (All days)
>>>    Detail A   30
>>>    Detail B   20
>>>    Detail C   10
>>>Grand Total   60
>>>
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform