visible property

B

brian

I have a form with a subform to input data. On that form is a preview
report button. Also, on the form is a check box to display certain
data in a subreport of the report or to turn certain datas visible
property off on the subreport.

How can I turn the visible property off for certain fields on the
report?

I have tried many different ways. If I go into the subreport and open
it up by itself I can get it to turn the data to turn dynamically but
when I open the report from the form it ignores the programming.

Can someone maybe help explain the process that happens when opening a
report with a subreport from a form?

Thanks
 
S

Sandra Daigle

Where is the code that toggles the visible property of these fields? If the
code is in the main Report then you probably need to make sure that the
control reference is made through the subreport control on the main report:

me.srptMySub.report.MyControl.visible=false

Replace 'srptMySub' with the name of the subreport control on the main
report and 'Mycontrol' with the name of the control on the subreport.
 

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