Background color of a subform label

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

Guest

I am trying to set the background color of a label on a subform. I can do it
with a "me.fieldname.background=colorcode" but I can not get it to work when
i try using a forms!... statment. Please help


Chris
 
DDBeards said:
I am trying to set the background color of a label on a subform. I can do it
with a "me.fieldname.background=colorcode" but I can not get it to work when
i try using a forms!... statment. Please help


From code in the main form's module:

Me.subform.Form.label.BackColor = colorcode
 
Marshall, are your use of subform and form litteral or do I put the name of
the forms?
 
in my meta-language, I use lowercase words for things you
need to replace and capitalized words for literal names.

Replace the "subform" with the name of the subform
**control** on the mainform. Form is the name of the
built-in property that returns the form object being
displayed in the subform control.
 
Back
Top