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

Calculating totals.

edited April 2003 in General
Hi,

I have a dataset and I want at the top of the report (in a title) to get
the count of the records if a certain field has a certain value. For
example, for every record, if ppDBText1.value := 'Incoming', I add to the
count.

Is it possible to do this without writing any code (i.e. set some properties
in a component such as ppDBCalc1 which has DBCalcType set to dcCount).??

Thanks
Sham.

Comments

  • edited April 2003
    Sham,

    Use a TppVariable and code its OnCalc event to count (increment the Value
    parameter by 1) when the report.datapipeline['fieldname'] := 'Incoming'; .
    Then set the variable's LookAhead property to True.

    --
    Best Regards,

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