Hi everyone, I did try to look up the solution on Internet but I haven't found one for that yet. I used Crystal Reports XI to create a report with sub-report. I have two groups in my main report. In order to suppress the main report and sub-report section when sub-report returns null date, I have shared variable and the following logic in main report group headers and detail.

WhilePrintingRecords;
Shared DateVar subreportDate;

If IsNull(subreportDate) Then
True
Else
False

For some reason, it suppresses the next record instead of the current record. Please help.

Albert