Hide a subreport based on the result from a checkbox in the main form
I have a report with several subreports that show up on the report based on if they have data in a specific table or not. I need to be able to hide one of these subreports in the main report if I have a check box selected or not selected in the main form. Can this be done by VBA code in the report? I am not sure how for it to check the main form.