Hi,
I have a report that I open via a button that I'd like to use as a template.
I've been able to change the recordsource, etc. Where I'm struggling is the controls.
If I don't set the Controlsources, Access asks for them via parameter. If I just click okay, the report opens as expected.
If I change the Controlsources via VBA :-
exactly the same thing happens.
Does anyone know how to get the report to open without having to open the parameters?
Thanks in advance
I have a report that I open via a button that I'd like to use as a template.
I've been able to change the recordsource, etc. Where I'm struggling is the controls.
If I don't set the Controlsources, Access asks for them via parameter. If I just click okay, the report opens as expected.
If I change the Controlsources via VBA :-
Code:
Reports!rpt2Cols.rpt2ColsDetail1.ControlSource = "Region"
Reports!rpt2Cols.rpt2ColsDetail2.ControlSource = "CountOfRegion"
exactly the same thing happens.
Does anyone know how to get the report to open without having to open the parameters?
Thanks in advance