I want a sub which will change the background color of a text box when a check box has been clicked. However when i click the check box the text box for all the records change color when i only want a single record to change. How can i get around this.
Code is:
Private Sub employed_Click()
ColorTextBox
End Sub
Private Sub ColorTextBox()
If employed Then
Notes_Label.BackColor = vbRed
Else
Notes_Label.BackColor = vbWhite
End If
End Sub
Code is:
Private Sub employed_Click()
ColorTextBox
End Sub
Private Sub ColorTextBox()
If employed Then
Notes_Label.BackColor = vbRed
Else
Notes_Label.BackColor = vbWhite
End If
End Sub