Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The SUM of Multiple Print Whens
Message
De
18/06/1997 19:25:39
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00036879
Message ID:
00036884
Vues:
40
The "print when" are only for the output to the report. There's no link between "print when" conditions and calculated fields/variables.

Calculated fields and calculated variables are evaluated (calculated) at each record. You can see it like you would have all those calculations in the procedure that is taking care of the detail band.

The solution is to define variables with IIFs. After that you print those variables instead of fields. Of course, you must SUM variables, not fields.

Vlad

>I have a report and have the same field (balance) across the detail band but with "print when" expressions to determine which column it should print on. Everything in the detail band works fine but the totals in the page footer are printing the SUM of the balance field in all columns,instead of respecting the "print when" expressions in the detail band.
>
>How can I get the totals to reflect the SUM of each individual column including the "print when" statements?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform