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

Variable to calc % in subreport

edited May 2004 in Subreports
I have a variable in the summary of a subreport that is to do a calc from 2
DBCalc fields on that report. I first placed all of these in a summary band
but the calculation matches the last record in the detail band. I added a
group and moved the calculation and dbCalcs to the group footer. Same
result.

Delphi 6 pro. RB 7.03.

Thanks.

--

_________________________________________
Don Gollahon
dlgllhn@InHisStepsSoftware.com
ICQ#: 115831669
"What in Eternity does it matter?"
_________________________________________

Comments

  • edited May 2004
    Hi Don,

    Which type of calculation are you making with the DBCalc components? In my
    testing with the sum, I was able to obtain the correct calculations and then
    divide the two values successfully in the OnCalc event of a TppVariable
    afterward.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited May 2004

  • edited May 2004
    I got it. I had copied from another line of code and forgot to change the
    FieldValue to just plain Value on the variable.

    It is working now.

    Thanks.

    --

    _________________________________________
    Don Gollahon
    dlgllhn@InHisStepsSoftware.com
    ICQ#: 115831669
    "What in Eternity does it matter?"
    _________________________________________


This discussion has been closed.