Hi,
I have a report that contains numerous sub-reports, some of which may not have any data to display. According to the Crystal KB I am supposed to set up a variable that determines if there are records and then suppress the relevant section based on that variable. All seems fine. However, when I try this it is not working.
The field tmpChild.ffchild contains 21 yet IsNull() returns True.
Here is the code in question.
If IsNull(Count({tmpChild.FFCHILD})) OR Count({tmpChild.FFCHILD}) = 0 then
SuppressChild:= TRUE
Else
SuppressChild:= FALSE;
The value in tmpchild.FFChild is 21.00. However, IsNull(Count({tmpChild.FFCHILD})) returns True as does IsNull({tmpChild.FFCHILD}).
Any ideas as to how to make this work correctly would be much appreciated.
Many thanks
Nathan Davies
I have a report that contains numerous sub-reports, some of which may not have any data to display. According to the Crystal KB I am supposed to set up a variable that determines if there are records and then suppress the relevant section based on that variable. All seems fine. However, when I try this it is not working.
The field tmpChild.ffchild contains 21 yet IsNull() returns True.
Here is the code in question.
If IsNull(Count({tmpChild.FFCHILD})) OR Count({tmpChild.FFCHILD}) = 0 then
SuppressChild:= TRUE
Else
SuppressChild:= FALSE;
The value in tmpchild.FFChild is 21.00. However, IsNull(Count({tmpChild.FFCHILD})) returns True as does IsNull({tmpChild.FFCHILD}).
Any ideas as to how to make this work correctly would be much appreciated.
Many thanks
Nathan Davies