Variable and DBCalc
Hi,
is it possible to combine TppVariable and TppDBCalc components to do
calculations? For example have TppDBCalc calculate Total Cost based on
record values and have TppVariable calculate Sales Tax based on TppDBCalc
value. Can those calculations be done in Summary band?
Thanks in advance.
is it possible to combine TppVariable and TppDBCalc components to do
calculations? For example have TppDBCalc calculate Total Cost based on
record values and have TppVariable calculate Sales Tax based on TppDBCalc
value. Can those calculations be done in Summary band?
Thanks in advance.
This discussion has been closed.
Comments
It may be possible to make calculations with a simple DBCalc component and a
Variable such as the grand total of a single detail band. However, as a
rule of thumb, when making calculations, you generally want to use only
TppVariable components and the OnCalc event. For instance, you could place
a TppVariable inside the detail band and in its OnCalc event, update the
value of another TppVaraible in the summary band. Then you could use the
value of that variable to make more calculations inside the summary band if
you need.
--
Thanks for supporting ReportBuilder! Please vote for ReportBuilder in the
Delphi Informant Readers Choice awards!
http://www.delphizine.com/ballot2004/
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com