How to skip sub report

M

Mei Qin

Hello,

I have a report consist with 9 subreports. I would like
to skip certain sub report, if the user choose not show
this subreport on a form. How can I do this?

Thanks for any help!

Mei
 
D

Duane Hookom

Use code in the On Format event of the report section containing the
subreport:
Me.srpSubOne.Visible = Forms!frmA!chkShowSubOne
 
Top