A
Alan Z. Scharf
Hi,
I'd like to change the recordsource of a subreport depending on the value of
a field in the main report.
However, the following line in the main form OnOpen event produces error
below.
Me!srptAnnualPerformanceCrosstab.Report.RecordSource = "SELECT * FROM
tblAnnualPerformanceCrosstab"
ERROR: 2455
You entered an invalid reference to the property form/report
This same syntax works in setting record source of a subForm, but it is not
working for my subReport here/
Any suggestions on how to change the subform's recordsource
programmatically?
Thanks.
Alan
I'd like to change the recordsource of a subreport depending on the value of
a field in the main report.
However, the following line in the main form OnOpen event produces error
below.
Me!srptAnnualPerformanceCrosstab.Report.RecordSource = "SELECT * FROM
tblAnnualPerformanceCrosstab"
ERROR: 2455
You entered an invalid reference to the property form/report
This same syntax works in setting record source of a subForm, but it is not
working for my subReport here/
Any suggestions on how to change the subform's recordsource
programmatically?
Thanks.
Alan