Shared Variable Not Working
Posted on 2005-03-14
In a Crystal Report I am developing, I have a Main Report and a Sub-Report.
In the Main Report, I have a formula called SetMainHeaderOn
Shared BooleanVar SuppressMainHeader := false
This formula has been placed in a header section that fires before the section containing the sub-report.
In the Sub-Report, I have a formula called SetMainHeaderOff
Shared BooleanVar SuppressMainHeader:=true
In the Main Report - I use a formula ShowMainHeader
Shared BooleanVar SuppressMainHeader
However, ShowMainHeader always returns false. If I place a similar query in the sub-report, it is always true. Any ideas?