C
Carl Rapson
Is it possible to change the RecordSource property of a subreport? I have a
report that contains several subreports, and I need to change the
RecordSource of several at runtime. In the Open event, I have lines like
<subreport name>.Report.RecordSource = "..."
but I get the following runtime message:
Run-time error '2455':
You entered an expression that has as invalid reference to the property
Form/Report.
I don't know if it makes any difference, but the subreports are not linked
to the main report -- I'm using the main report simply as a "vessel" to
produce the subreports.
Is it possible to change the subreport's RecordSource? If so, where or how
do I need to do it?
Thanks for any information,
Carl Rapson
report that contains several subreports, and I need to change the
RecordSource of several at runtime. In the Open event, I have lines like
<subreport name>.Report.RecordSource = "..."
but I get the following runtime message:
Run-time error '2455':
You entered an expression that has as invalid reference to the property
Form/Report.
I don't know if it makes any difference, but the subreports are not linked
to the main report -- I'm using the main report simply as a "vessel" to
produce the subreports.
Is it possible to change the subreport's RecordSource? If so, where or how
do I need to do it?
Thanks for any information,
Carl Rapson