Hi Everyone,
I am wanting to use a shared variable to pass a boolean between a subreport and the main report and am having trouble getting it to work. I am using Crystal Reports 10; code as follows: (I had found a thread saying to use whileprintingrecords - but that did not change my results any)
Main Report (Group Header #1a):
Subreport (Group Header #2d):
I guess my question is what is wrong with my current code, or if it matters on the location of the variables on the main & subreports. I have tried commenting out the outside IF statement in the subreport formula, and again, the variable doesn't change (even within the subreport).
Thanks,
Mike
"It Seems All My Problems Exist Between Keyboard and Chair"
I am wanting to use a shared variable to pass a boolean between a subreport and the main report and am having trouble getting it to work. I am using Crystal Reports 10; code as follows: (I had found a thread saying to use whileprintingrecords - but that did not change my results any)
Main Report (Group Header #1a):
Code:
whileprintingrecords;
shared BooleanVar Delinquency;
IF Delinquency = TRUE THEN "Yes" ELSE "No"
Subreport (Group Header #2d):
Code:
whileprintingrecords;
shared BooleanVar Delinquency;
IF Delinquency = FALSE THEN
(
IF {LN.DOLDEL} > 0 THEN
(
Delinquency = TRUE
)
)
I guess my question is what is wrong with my current code, or if it matters on the location of the variables on the main & subreports. I have tried commenting out the outside IF statement in the subreport formula, and again, the variable doesn't change (even within the subreport).
Thanks,
Mike
![[banghead] [banghead] [banghead]](/data/assets/smilies/banghead.gif)