Link to home
Start Free TrialLog in
Avatar of Patrick O'Dea
Patrick O'DeaFlag for Ireland

asked on

Quickie ! Making a variable colored label...


Hi again,
see this line below.
Me.ReportedByID.BackColor = vbRed

Instead of vbRed I want to be able to have a variable.
So, for instance, I want to be able to set of fields to a different colour without have to amend multiple fields.   How do I do this??
ASKER CERTIFIED SOLUTION
Avatar of mbizup
mbizup
Flag of Kazakhstan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I prefer to use conditional formatting.
Th OP is asking about a label.

I guess it could be changed it to a textbox with properties to make it look like a label in order to use CF.
Was not sure, the title says "label", but then in the text, the OP used fields.  Thought I'd throw our that option too.

Dale
Yeah... either way, its a good option.
Avatar of Patrick O'Dea

ASKER

Thanks, that works nicely.

(I DID mean "label" .... excuse my lack of correct terminology ... I am a victim of being self taught by a lazy teacher !!)