label captions

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
 
D

Duane Hookom

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?
 
D

Duane Hookom

I would set the caption property in the On Format event of the section in
the report that contains the label.
 

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