Crystal Reports - Section Expert - Supress
Posted on 2014-10-30
I created a report with two subreports (the subreports are in groups so they are filtered properly by ID). The supreports are based on the same field "PostTax". It is a bit field which is either true or false. I used the record selector to filter the record for each subreport.
I need to suppress each subreport if there is no data.
NOT (PostTax = True)
Count (PostTax = True) = 0 // This gives me error
But I can't get it to work correctly.
PostTax will have a value but I am trying to figure out how to suppress appropriately for each subreport.
SubreportA the PostTax = False
SubreportB the PostTax = True
So if SubreportA has no PostTax = False records I want to suppress that section
And if SubreportB has no PostTax = True records I want to suppress that section