Can a subreport set visible to false for an item on the main report section?
Example:
if chResult="Field Changed" Then Section1.Visible=False
This line would be in a history subreport. I'd want it to hide section1 of the main report. However it doesn't seem like a subreport can control visibility of any item on the main report. I'm guessing I don't know the proper name for the main report object.
Just trying to make it hide a label I've tried:
Section1Header.Label1.Visible
Main.Section1Header.Label1.Visible
Main.Label1.Visible
None of those seem to have an effect. I did rename Section 1 Header on the main report to Section1Header thinking it couldn't/shouldn't contain spaces in a variable name. Since the report comes with spaces, I'd wager that I'm way off on the objects real name.
Any insight?
Marshall Hayes
ACT! Certified Consultant
Hayes Consulting LLC
www.HayesConsultingOnline.com