PC Review


Reply
Thread Tools Rate Thread

2003: Referencing Object On Subreport

 
 
(PeteCresswell)
Guest
Posts: n/a
 
      3rd Jun 2010
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?
--
PeteCresswell
 
Reply With Quote
 
 
 
 
tighe
Guest
Posts: n/a
 
      3rd Jun 2010
me.[subViolations].Report![lblReportHeader].caption="Compliant"

"(PeteCresswell)" wrote:

> 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?
> --
> PeteCresswell
> .
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
referencing subreport items gtslabs Microsoft Access Reports 3 17th Nov 2008 12:38 AM
Referencing Main Report from Subreport =?Utf-8?B?Q0s=?= Microsoft Access Reports 1 12th Nov 2004 05:39 AM
Referencing Subreport Field =?Utf-8?B?Q0s=?= Microsoft Access Reports 2 1st Oct 2004 12:21 PM
Referencing field in subreport =?Utf-8?B?Q0s=?= Microsoft Access Forms 2 1st Oct 2004 12:21 PM
Referencing SubReport from Report J9 Microsoft Access Reports 3 8th Jun 2004 01:30 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:42 PM.