In my report, I need to hide some sheets with conditions.
The report is :
In page 1 : DataBand1
In page 2 : DataBand2
In page X : DataBand X
If the Databand is empty (no row), I want to hide the sheet.
I tried this expression on the sheet :

It works but, for example, if Count(DataBand2)=0, the report stop on sheet 2. The next sheets never appears...
I supposed that the problem was calling datas on a hide sheet (I Count Databand on a sheet wich is finally hide). So I made a "previous sheet" with the different DataBand of my report in order to count each databand of my expressions in this new page, which is always printed.
It does'nt work.
For exemple, on sheet 2
- When Count=0, the sheet disappear : Ok.
- When Count !=0, the sheet appear, but totally blanck ! Why ?
Any idea to solve my problem ?
Thanks for your help.