nfstrong
asked on
Display label when subreport empty
I have a report that contains a subreport. When the subreport does not have any data to display I would like a label to appear with a message saying "No New Clients". I have the label on the subreport with the visible property set to false. I also have the below code. This works when I run the subreport separately, but when I run it with the main report it does not work. Any suggestions?
Private Sub Report_NoData(Cancel As Integer)
Me.lblNNC.Visible = True
End Sub
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Private Sub Report_NoData(Cancel As Integer)
Me.Parent.lblNNC.Visible = True
Me.Visible = False
End Sub