2003: Referencing Object On Subreport

  • Thread starter (PeteCresswell)
  • Start date
P

(PeteCresswell)

I've Googled this and *think* I'm doing the right thing, but
no-go.

Report A has subreport object "subViolations" whose SourceObject
is another report.

Within Report A's code I am trying to change the caption on a
label in the subreport.

Generically, it seems like this should work in the Immediate
window:

Me.subViolations.Report!lblReportHeader = "Compliant"

or, simpler still:

?Me.subViolations.Report.Name

But both throw

Run-time error '2455';
"You entered an expression that has an invalid reference to the
property Form/Report."


Anybody have a thought?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top