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

  • Thread starter Thread starter seo-highrankings.com
  • Start date Start date
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
 
Back
Top