DBCalc count variable incorrect
I have a count DBCalc in a group footer. If this group is empty, the count
shows 1. I don't want to have to write lots of code to calculate the correct
amount for each group, so I would prefer it if the count would just show
correct. Please advise on why this happens, and how to get it to calculate
correctly. Thanks.
Peter Brennan,
DPN Software,
peter.brennan@dpnsoftware.com
shows 1. I don't want to have to write lots of code to calculate the correct
amount for each group, so I would prefer it if the count would just show
correct. Please advise on why this happens, and how to get it to calculate
correctly. Thanks.
Peter Brennan,
DPN Software,
peter.brennan@dpnsoftware.com
This discussion has been closed.
Comments
handler for the DBCalc. In it check if ppReport1.DataPipeline.State is equal
to 'ppdaNoRecords' (found in ppTypes). If so, set the DBCalc1.Value to 0.
The other option is to set ppReport1.DataPipeline.SkipWhenNoRecords property
to True which will skip empty groups entirely.
--
Cheers,
Alexander Kramnik
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
group is empty. When I try datapipeline.state=ppdaNoRecords, I get the
compilation message 'Incompatible types'. Thanks
Peter Brennan
DPN Software
peter.brennan@dpnsoftware.com
if (ppdaNoRecords in ppReport1.DataPipeline.State) then ...
--
Cheers,
Alexander Kramnik
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com