georgesOne
Technical User
Dear All,
I have an access form ("frmCover") which displays an access report ("repMonthly") with four subreports ("rptInst1", "rptInst2", "rptInst3", "rptInst4").
The first two subreports are in a group header section of "repMonthly".
I successfully reference their recordsource - e.g. for "rptInst1" - with:
Forms!frmCover.repMonthly.Report.rptInst1.Report.RecordSource = "SELECT ....." Or
Forms("frmCover").Controls("repMonthly").Report.Controls("rptInst1").Report.RecordSource = "SELECT..."
The latter two reports are located in the report footer.
Attempts to reference them in the same way fails with the info "You entered an expression that has an invalid reference to the property Form/Report".
Any suggestions how to do?
Thanks, georges
I have an access form ("frmCover") which displays an access report ("repMonthly") with four subreports ("rptInst1", "rptInst2", "rptInst3", "rptInst4").
The first two subreports are in a group header section of "repMonthly".
I successfully reference their recordsource - e.g. for "rptInst1" - with:
Forms!frmCover.repMonthly.Report.rptInst1.Report.RecordSource = "SELECT ....." Or
Forms("frmCover").Controls("repMonthly").Report.Controls("rptInst1").Report.RecordSource = "SELECT..."
The latter two reports are located in the report footer.
Attempts to reference them in the same way fails with the info "You entered an expression that has an invalid reference to the property Form/Report".
Any suggestions how to do?
Thanks, georges