I have a subreport with several fields in it. I want it to display "No Sales" if the report has no data.
I tried it the following ways, none of which were successful.
1st: I put the following code into a field in the subreport: IIf ([Sub].Report.HasData = True, [Sub].Report!Comp, "No Sales")
2nd: I put the same code into a field in the parent report. That was also unsuccessful.
Any ideas about what I am missing?
Thanks.
Maddi
I tried it the following ways, none of which were successful.
1st: I put the following code into a field in the subreport: IIf ([Sub].Report.HasData = True, [Sub].Report!Comp, "No Sales")
2nd: I put the same code into a field in the parent report. That was also unsuccessful.
Any ideas about what I am missing?
Thanks.
Maddi