PDA

View Full Version : Shared Variable w/Subreports Clearing Problem



dbmcbrierty
25-May-2005, 01:35 PM
I have a main report that is sharing variables with subreport just fine. The
subreport load there totals in the shared variable and it pass up to the
Main Report perfectly...... But when the subreport has no data to print the
running totals that are not cleared and the old total from the last
subreport and passed to the main report. Does anyone know how I can clear
the main report shared varaiable or the subreport shared varaiable?

Thanks Doug

Doug McBrierty
(530) 295-0586
dbmcbrierty@zackly.biz

dbmcbrierty
28-May-2005, 11:49 AM
I am using version 7.0, these changes where done this way because 7.0 does
not have some of the built-in control found in Ver 10 and XI.

I had to edit my running total before I attached it to the Sahred varaiable
Like this:

New Formula : "New Total Parts"
If IsNull ({#Total Parts}) Then 0
Else {#Total Parts}

Adjusted Shared Varaiable Formula :
WhilePrintingRecords;
Shared NumberVar Total Parts := {@ New Total Parts}

This remove the old total from non blank sub report.

Thank You David Martinko
Doug

"Doug McBrierty" <dbmcbrierty@zackly.biz> wrote in message
news:%23Zx0KiVYFHA.1320@dacmail.dataaccess.com...
>I have a main report that is sharing variables with subreport just fine.
>The
> subreport load there totals in the shared variable and it pass up to the
> Main Report perfectly...... But when the subreport has no data to print
> the
> running totals that are not cleared and the old total from the last
> subreport and passed to the main report. Does anyone know how I can clear
> the main report shared varaiable or the subreport shared varaiable?
>
> Thanks Doug
>
> Doug McBrierty
> (530) 295-0586
> dbmcbrierty@zackly.biz
>
>