In Access 2002 I am creating a new instance of a report object from a form using:
Dim rpt As New Report_rpt
Set rpt = New Report_rpt
I am then trying to set the GroupLevel ControlSource of the report in the Report_Open section using:
Me.GroupLevel(0).ControlSource = "Test"
and am getting the error message:
"You can't set the Control Source property in print preview or after printing has started"
I am only getting this error message if I open up the report as a new object. If I just open it as a standard report everything works OK. However I need multiple instances of the same report showing different gropuing levels. Has anyone any ideas?
Thanks in advance
James
Dim rpt As New Report_rpt
Set rpt = New Report_rpt
I am then trying to set the GroupLevel ControlSource of the report in the Report_Open section using:
Me.GroupLevel(0).ControlSource = "Test"
and am getting the error message:
"You can't set the Control Source property in print preview or after printing has started"
I am only getting this error message if I open up the report as a new object. If I just open it as a standard report everything works OK. However I need multiple instances of the same report showing different gropuing levels. Has anyone any ideas?
Thanks in advance
James