Making subreport labels invisible when there is no data in the subreport

  • Thread starter Thread starter John Baker
  • Start date Start date
J

John Baker

Can anyone tell me how I can make the label of a subreport invisible when
the subreport has no data?


Any help greatly appreciated

John Baker
 
John said:
Can anyone tell me how I can make the label of a subreport invisible when
the subreport has no data?


Use a line of code in the Format event of the section
containing the subreport:

Me.label.Visible = Me.subreport.Report.HasData
 
Back
Top