dbTalk Databases Forums  

Re: label captions

comp.database.ms-access comp.database.ms-access


Discuss Re: label captions in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Norm
 
Posts: n/a

Default Re: label captions - 04-02-2004 , 03:43 PM






akinfam (AT) hotmail (DOT) com (seeker52) wrote in message news:<8c9f7d3a.0403291903.b173fb2 (AT) posting (DOT) google.com>...
Quote:
I am changeing the label caption via code but it does not indicate the
change when the report is shown on the screen. I first open the
report via VB and then place this line in code
reports!rptcardtobesent1year!label4.caption = "1 year cards to be sent
for " & forms!frmmonthselect!lstmonthselect When I view
?reports!rptcardtobesent1year!label4.caption in the immediate window
it has the correct text but when I look at the open report the label
does not indicate a change. Do I need to setfocus for that label
first before I assingment a value to the caption property?

seeker53
I believe the issue is that you need to make sure that both
"rptcardtobesent1year" and "frmmonthselect" are both open when you
call the code that makes the change to the label caption property. If
these items are not open, it means that the objects have not been
instantiated, so their properties will not be accessible.


Reply With Quote
Reply




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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.