summing masterdata

guzialguzial Poland
edited 3:36AM in FastReport 2.xx VCL
helloo

next problem is:

i need to sum some values from masterdata and i have to show it on every page
problem is: i can only sum by for exapmle [SUM([Table1."EmpNo"])] and it gives sum of position which has been just shown so..

on 1st page a have in master data
1
2
1
2

so on page footer [SUM([Table1."EmpNo"])] gives me "6"

2nd page a have in master data
2
2
3
2

so on page footer [SUM([Table1."EmpNo"])] gives me "15"

i need to have filed in which i could have sum of values from every page

so on first page i would like to have "sum 6 total 6"
on 2nd page "sum 9 total 15"

i slove it by script but i would like to know if it possible to slove it by some componetn or some properites like i t was in QuickReport without any additional script/code

regards and sorry for my english

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.