I have one main report which shows the order details and one subreport which shows order items details. Here I passed orderno as parameter to subreport. It has multiple records group by order number. so for each order number, there are seperate set of records. I want to hide both sub report and main report when sum of demand value in subreport is zero or blank, sum of supply > sum of demand. Now I can able to hide only sub report by using the following Condition :
=IIF(Sum(IsNothing(Fields!Demand.Value)) OR Sum(Fields!Demand.Value = "") OR
(Sum(Fields!Supply.Value) > Sum(Fields!Demand.Value)), False, True)
But here, the main report data is showing which I want to hide. How can we hide both main and subreport based on value in subreport? Can anyone help me to do this? Thanks in advance...