refer to variable from subReport

guzialguzial Poland
edited 2:27PM in FastReport 2.xx VCL
hello everybody ;)

i have on my report 2 subReports and every of that sub reports contains masterDatas bands. I want to on report have one memo where be sum of records from that masterdatas, it is not a problem to do somethig like that inside subReport on masterFooter band :
[SUM(someData, MasterData1)] and that will sum up records from masterdata1

but how can i do it outside subReport (on main report) - it doesn't work - why ??
mayby i should do something like [SUM(someData, SubReprot1.MasterData1)] - but id doesn't work too

thanks 4 help

sorry 4 my english

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 2:27PM
    Use an intermediate variable and use it in main report
    but you willonly be able to use it in areas after subrep is finished.
    regards ;)
  • guzialguzial Poland
    edited 2:27PM
    yes i did by variable and it works

Leave a Comment