A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

2003: Referencing Object On Subreport



 
 
Thread Tools Display Modes
  #1  
Old June 3rd, 2010, 02:19 PM posted to microsoft.public.access
(PeteCresswell)
external usenet poster
 
Posts: 438
Default 2003: Referencing Object On Subreport

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
  #2  
Old June 3rd, 2010, 09:19 PM posted to microsoft.public.access
tighe
external usenet poster
 
Posts: 53
Default 2003: Referencing Object On Subreport

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
.

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:32 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.