views:

2349

answers:

1

I am running crystal reports 11 and in the main report is a subreport which calculates the balance. In the subreport balance, I have the formula named balancetotal which manually sums the running total of the tarinvoice.balance field.

WhileReadingRecords;
global numbervar balancetotal;
balancetotal := balancetotal + {tarInvoice.Balance}

In the main parent report, i have a formula named balancetotal with this formula:

    global numbervar balancetotal;
    balancetotal;

is this incorrect?

thanks in advance

+2  A: 

nevermind. I'm supposed to use "shared" instead of "global"

phill
+1 I didn't know about the "shared".
dotjoe