Sam Summers
Registered User.
- Local time
- Today, 18:38
- Joined
- Sep 17, 2001
- Messages
- 939
I have tried numerous ideas as posted in the forum, but still no joy!
I have a main report (Manifest) that has numerous sub-reports in it e.g. MaillonLocation.
In the subreport I have an unbound textbox (Mtotal) that holds the total of records in the subreport based on the bound textbox (ItemNo), by using - =Count([MaillonLocation]![ItemNo]).
On the main report I have an unbound textbox (Mcalc) that displays the total number of records in the subreport by using - =([MaillonLocation]![Mtotal].[Text]).
What I want to do is display nothing on the Main report textbox if there is no data in the subreport.
I have tried this - =IIf([MaillonLocation].[Report].[HasData],"","").
But this simply displays nothing all the time.
The rest of the time, all I am getting is #Error.
Great if you can help me.
Thanks in advance
I have a main report (Manifest) that has numerous sub-reports in it e.g. MaillonLocation.
In the subreport I have an unbound textbox (Mtotal) that holds the total of records in the subreport based on the bound textbox (ItemNo), by using - =Count([MaillonLocation]![ItemNo]).
On the main report I have an unbound textbox (Mcalc) that displays the total number of records in the subreport by using - =([MaillonLocation]![Mtotal].[Text]).
What I want to do is display nothing on the Main report textbox if there is no data in the subreport.
I have tried this - =IIf([MaillonLocation].[Report].[HasData],"","").
But this simply displays nothing all the time.
The rest of the time, all I am getting is #Error.
Great if you can help me.
Thanks in advance