Hi
I'm having a problem with the datareports in vb6. My report consist of a couple of groups with function controls to calc totals for each group. How do I add (sum) the totals I get from my functions and display the result in a label?
Thanks
Printable View
Hi
I'm having a problem with the datareports in vb6. My report consist of a couple of groups with function controls to calc totals for each group. How do I add (sum) the totals I get from my functions and display the result in a label?
Thanks
You can't display using a label. If in addition to Sum(A), Sum(B), and Sum(C), you want to display using data report textbox Sum(A) + Sum(B) + Sum(C), THEN you will have to include A+B+C column in the data source/recordset/command object. Once A+B+C column is available, you can place a function control to SUM(A+B+C column).
Data report works with the data source, it doesnt access values from what was already outputted/rendered/generated or doesn't access values from it's controls during report generation.
Moved To Reporting