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

SuppressRepeatValue and sum?

edited January 2005 in General
Hi
When I set the SuppressRepeatValue property in ppDBText and
calculation Sum(ppDBText) in ppDBCalc,
the ppDBCalc seems sum the values duplicated.

date invoice total good amt
----- ------- ------ ----- -----
12/01 1201 100 01 50
02 50
12/01 1202 200 01 50
02 50
03 100
----------------------------------
sum: 2 300 300
5 800 300 <-----------wrong

I set the field(date, invoice, total) SuppressRepeatValue on
But I get the wrong count/sum value when I use ppDBCalc.
How to slove it?
Thanks

Comments

  • edited January 2005
    Hi,

    The DBCalc is not tied in any way to a DBText you might have in your detail
    band. It simply sums up the values in your datset. If you would like to
    calculate the sum, taking into account the repeated values, you will need to
    do so using TppVariables and their OnCalc events (Checking for the repeated
    values in code).

    --
    Best Regards,

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