I hope somebody can help me. I have declared a BooleanVar shared variable in my subreport, which always displays the right True/False. However, when I then declare it in the main report, it does not seem to have any relevance to what is actually being tested to get the true or false. Sometimes it is right, most of the time wrong. I was wondering if there was something silly I have missed.
The code for declaring my shared variable is
WhilePrintingRecords;
Shared BooleanVar applicable;
If IsNull ({CONTACT.CONTACTID})
THEN applicable:= FALSE
Else applicable:= TRUE;
The code for declaring the variable in the main report is
WhilePrintingRecords;
Shared BooleanVar applicable;
applicable
I have made sure the formula is declared after the sub-report (I have put it in the next section of the report).
Please help, I have absolutely no idea what the problem is.
Thanks in advance
The code for declaring my shared variable is
WhilePrintingRecords;
Shared BooleanVar applicable;
If IsNull ({CONTACT.CONTACTID})
THEN applicable:= FALSE
Else applicable:= TRUE;
The code for declaring the variable in the main report is
WhilePrintingRecords;
Shared BooleanVar applicable;
applicable
I have made sure the formula is declared after the sub-report (I have put it in the next section of the report).
Please help, I have absolutely no idea what the problem is.
Thanks in advance