Hiding Subreport

  • Thread starter Thread starter Anita Taylor
  • Start date Start date
A

Anita Taylor

I'm looking for a way to hide a subreport if it contains
no data. I found the HasData property, but I'm not sure
how to use it, where to put it, etc. Any help would be
appreciated.
 
Anita said:
I'm looking for a way to hide a subreport if it contains
no data. I found the HasData property, but I'm not sure
how to use it, where to put it, etc. Any help would be
appreciated.

Put somthing like this:

If Me.subreportcontrol.Report.HasData Then
Me.subreportcontrol.Visible = True
Else
Me.subreportcontrol.Visible = False
End If

in the Format event procedure of the section containing the
subreport.
 
Back
Top