P
poucedeleon via AccessMonster.com
I have a subform that has a combobox and a checkbox. I want the backcolor to
change if the checkbox is checked. This is a continues form so when I click
the checkbox all the rows change. can someone tell me how to have this only
effect the record/row I am working on?
Private Sub NoReportRequired_AfterUpdate()
If Me.NoReportRequired = -1 Then
Me.StaffID.BackColor = vbYellow
Me.StaffID.ForeColor = vbBlack
Else
Me.StaffID.BackColor = vbWhite
Me.StaffID.ForeColor = vbBlack
End If
End Sub
change if the checkbox is checked. This is a continues form so when I click
the checkbox all the rows change. can someone tell me how to have this only
effect the record/row I am working on?
Private Sub NoReportRequired_AfterUpdate()
If Me.NoReportRequired = -1 Then
Me.StaffID.BackColor = vbYellow
Me.StaffID.ForeColor = vbBlack
Else
Me.StaffID.BackColor = vbWhite
Me.StaffID.ForeColor = vbBlack
End If
End Sub