Thanks to this forum I now use the below code in one of my forms in the database:
Private Sub TickRelease_AfterUpdate()
If Me.TickRelease = True Then
Me.LabelRelease.ForeColor = RGB(69, 139, 0)
Me.LabelRelease.Caption = "Release"
Else
Me.LabelRelease.ForeColor = RGB(238, 0, 0)
Me.LabelRelease.Caption = "No Release"
End If
End Sub
That code allows colour and text change of a label for a check box depending if it's checked or not, which is very useful for my users.
However, when it comes to my report I need something similar in a report. So when all the data is filled out in the form, and then I want to print of the coversheet/report I can have the tick box in the report but also the relevant changing text in the label depending on if the box is checked or not.
Private Sub TickRelease_AfterUpdate()
If Me.TickRelease = True Then
Me.LabelRelease.ForeColor = RGB(69, 139, 0)
Me.LabelRelease.Caption = "Release"
Else
Me.LabelRelease.ForeColor = RGB(238, 0, 0)
Me.LabelRelease.Caption = "No Release"
End If
End Sub
That code allows colour and text change of a label for a check box depending if it's checked or not, which is very useful for my users.
However, when it comes to my report I need something similar in a report. So when all the data is filled out in the form, and then I want to print of the coversheet/report I can have the tick box in the report but also the relevant changing text in the label depending on if the box is checked or not.