Using checkbox to change font

J

James Mitchell

Have check box Labled "Fail" would like this to change
either the check mark of the lable to red if "True". How
do I do theis in VBA I'm assuining an If, Then statment
that would change font.color for the checkbox label
property. Do not know how to do this exactly. Any help
appreciated
 
F

fredg

Have check box Labled "Fail" would like this to change
either the check mark of the lable to red if "True". How
do I do theis in VBA I'm assuining an If, Then statment
that would change font.color for the checkbox label
property. Do not know how to do this exactly. Any help
appreciated

In the Check Box AfterUpdate event AND in the Form's Current event:

If Me![CheckBoxName] = True Then
Me!LabelName.ForeColor = vbRed
Else
Me!LabelName.ForeColor = vbBlack
End if

Change the label name and check box field name to whatever the actual
names are.
 

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