I am using the following syntax to open my report:
But I also want to be able to hide a control on that report using VBA. I am using the following syntax and it isn't working for me. Any ideas?Code:DoCmd.OpenReport "[Report]", acViewPreview
Code:Reports![ReportName]![SubReportName]![ControlName].Visible = False