PDA

Click to See Complete Forum and Search --> : Datareports in VB6


stoffels7
May 26th, 2008, 01:57 PM
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

leinad31
May 26th, 2008, 08:23 PM
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.

Hack
May 27th, 2008, 06:19 AM
Moved To Reporting