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

Calc subreport totals?

edited September 2005 in General
D7 RB7.04

I have a subreport on a group header and a DBCalc component on the group
footer that is summing a figure in the detail of the subreport. It is
calculating, but the figure it displaysis higher than the actuall sum of the
figure in the detail of the subreport.

Thanks ALL for ANY help!!!

Branden Johnson

Comments

  • edited September 2005
    Hi Branden,

    Instead of using DBCalcs, you will need to use two TppVariables. Place one
    variable inside the detail band of your subreport and one in the Group
    Footer of your main report. Then, inside the OnCalc event of the first
    variable, update the value of the second variable which acts as the sum. If
    you do not want to see the first variable, you can set its visibility to
    False.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited September 2005
    That works except that it adds the last line twice?

  • edited September 2005
    Hi Branden,

    This is not a known behavior for a Variable in the Group footer. If
    possible, please send a small example of this behavior in .zip format to
    support@digital-metaphors.com and I'll take a look at it for you.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.