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

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
 
M

Marshall Barton

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top