I want to change the RecordSource property of a sub-report when the main report opens.
In my case the sub-report name is "Rpt_r&a_tdoc".
The code in the main report event "On Open" is:
"Me.Rpt_r&a_tdoc.RecordSource = Qry_docrev_tdoc"
This bombs the report out - but - I'm not sure where the error is occuring.
Any ideas?
In my case the sub-report name is "Rpt_r&a_tdoc".
The code in the main report event "On Open" is:
"Me.Rpt_r&a_tdoc.RecordSource = Qry_docrev_tdoc"
This bombs the report out - but - I'm not sure where the error is occuring.
Any ideas?