Hiding specific detail controls when subreport has data

H

hornetsjaz

Basically, I have a main report and two subreports. When the one
subreport has data I want to hide certain controls on the main reports
detail. Likewise with the other subreport.

Any suggestions?

Thanks
 
D

Duane Hookom

You can use code in the On Format event of the section of the main report
like:

Me.txtCertainControl.Visible = (Me.srptOne.Report.HasData = False)
 
H

hornetsjaz

Thanks a bunch! That worked

Duane said:
You can use code in the On Format event of the section of the main report
like:

Me.txtCertainControl.Visible = (Me.srptOne.Report.HasData = False)
 

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