label captions

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
Where is the code that sets the caption? Is it in the On Format event of the
section containing the label?

--
Duane Hookom
MS Access MVP
--

seeker53 said:
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?
 
I would set the caption property in the On Format event of the section in
the report that contains the label.
 
Back
Top