R
Repent34
I have a form with a yes/no checkbox and it's accompanying label control.
I'd like the checkbox to start out empty, with the label being a red color
and the text "Not Resolved" to display. then when the user is filling in
the form, and clicks in the yes/no box to put in a checkmark, the label will
then turn green and the text "Resolved" shows up in the label control.
I found this code while googling but not sure where it should be plugged
into. New to all this.
Private Sub tickrelease_AfterUpdate()
If Me.tickrelease = True Then
Me.lblrelease.ForeColor = vbGreen
Me.lblrelease.Caption = "Is Resolved"
Else
Me.lblrelease.ForeColor = vbRed
Me.lblrelease.Caption = "Is Not Resolved"
End If
End Sub
I'd like the checkbox to start out empty, with the label being a red color
and the text "Not Resolved" to display. then when the user is filling in
the form, and clicks in the yes/no box to put in a checkmark, the label will
then turn green and the text "Resolved" shows up in the label control.
I found this code while googling but not sure where it should be plugged
into. New to all this.
Private Sub tickrelease_AfterUpdate()
If Me.tickrelease = True Then
Me.lblrelease.ForeColor = vbGreen
Me.lblrelease.Caption = "Is Resolved"
Else
Me.lblrelease.ForeColor = vbRed
Me.lblrelease.Caption = "Is Not Resolved"
End If
End Sub