REPOST: Help with Label Color of SubForm

G

Guest

I have a primary form that contains two subforms. Each subform has a series
of milestones that need to be checked off when completed. However, the
second subform does not become active until the first is completed. Soooo...
on the first subform I have a button that checks all steps have been done and
if so, I want to change the color of the first subform label to blue and a
label on the second subform to green. The first subform has control. I have
tried Forms!masterform!subform2!label2.background= colorcode to no evail.
Someone please help!

Chris "DDBeards"
 
P

Philo Hamel via AccessMonster.com

This would be the right way to change a label WITHIN the subform, not the
subform's own lable:
Forms!masterform!subform2!label2.BackStyle = 1 '--Normal instead of
transparent
Forms!masterform!subform2!label2.BackColor = 8421376 '--Colorcode

This is the way to change the subform's label (assuming label2 is the name
of the subform's label):
Me.label2.BackStyle = 1 '--Normal instead of transparent
Me.label2.BackColor = 8421376 '--Colorcode

Later,
Philo
 

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