What I am trying to do is generate a report (named reportselection) from what is selected on a form. I have put the information required into group headers on a report. On the report I would like to hide or show group headers depending on what has been selected on the form.
I have tried to do this by using the section property i.e.
Reports!ReportSelection.Section(5).Visible, on the OnOpen event on the report but I keep getting an error message that says 'microsoft access can't find the field 'section' referred to in your expression.
Can anyone tell me how to hide the group headers or is there a better way of generating a data defined report.
Thanks to anyone who can offer some advice.
BH
I have tried to do this by using the section property i.e.
Reports!ReportSelection.Section(5).Visible, on the OnOpen event on the report but I keep getting an error message that says 'microsoft access can't find the field 'section' referred to in your expression.
Can anyone tell me how to hide the group headers or is there a better way of generating a data defined report.
Thanks to anyone who can offer some advice.
BH