Hello
I thought this was a simple thing to do but for some reason nothing work....
I have a textbox on my Report with a simple =count(*) in it which counts the number of times an item is displayed in the report. Now when no items are displayed I need this textbox to show 0.
I've tried all these but none of them work!!!
=IIF(ISNULL(count(*)),0,count(*))
=NZ(count(*))
=IIF(ISNULL(NZ(count(*))),0,count(*))
I've also tried to do the count in one text box and in another textbox show 0 with the help of an IIF statement. But it doesnt work.
I keep getting an #ERROR when I run the report.
I think ideally there should be some kind of ONERROR statement or a ON NODATA but cant seem to figuire it out.
Any help would be appreciated!!
Ta
Gillian
I thought this was a simple thing to do but for some reason nothing work....
I have a textbox on my Report with a simple =count(*) in it which counts the number of times an item is displayed in the report. Now when no items are displayed I need this textbox to show 0.
I've tried all these but none of them work!!!
=IIF(ISNULL(count(*)),0,count(*))
=NZ(count(*))
=IIF(ISNULL(NZ(count(*))),0,count(*))
I've also tried to do the count in one text box and in another textbox show 0 with the help of an IIF statement. But it doesnt work.
I keep getting an #ERROR when I run the report.
I think ideally there should be some kind of ONERROR statement or a ON NODATA but cant seem to figuire it out.
Any help would be appreciated!!
Ta
Gillian