Change the color of the label on a Y/N form element basedupon value

  • Thread starter seo-highrankings.com
  • Start date
T

tina

in the form's OnCurrent event, and the checkbox's AfterUpdate event, call
the following sub, as

Private Sub ChangeColor()

Wth Me
If .CheckboxName Then
.CheckboxLabelName.BackColor = 255
Else
.CheckboxLabelName.BackColor = 138
End If
End With

End Sub

substitute the correct control names and the correct color numbers, of
course. fyi, this will not give you the results you want to see if the form
is a "continuous" form.

hth
 

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