Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Sumarizing a calculation

edited August 2001 in General
Hi!

I need to print in the detail band a calculation between two fields (i.e.
(field_A + field_B) / 3). Then I need to sumarize this calculation in the
footer band of a group (i.e. sum ((field_A + field_B) / 3)).
How can I do both things?

Thanks in advance

Francisco

Comments

  • edited August 2001
    Use a TppVariable in the detail band. In its OnCalc event, perform the
    calculation. Then put a TppVariable in the footer band. In the OnCalc of the
    detail variable, after the calculation, you can sum the value using the
    footer variable to hold the sum only. Be sure to set the datatype of the
    variable in the OI or in the designer's drop down box.


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.