How To hide a subreport?
I found how to know if the subreport has no data
(Me.subreportna me.Report.HasDa ta)
what I didn't find is how to make the sub report unvisibile if it has no data.
I tried:
If Not Me.subreportnam e.Report.HasDat a then
Me.subreportnam e.Report.Visibl e = False
End If
but it gave me an error
I found how to know if the subreport has no data
(Me.subreportna me.Report.HasDa ta)
what I didn't find is how to make the sub report unvisibile if it has no data.
I tried:
If Not Me.subreportnam e.Report.HasDat a then
Me.subreportnam e.Report.Visibl e = False
End If
but it gave me an error
Comment