Hello,
I have a form with a check box. When the Check box is true I have coded for the Header to turn red. as below. The properties for the header back colour is #22B14C
If Me.AccountOnHold = True Then
Me.FormHeader.BackColor = vbRed
Else: Me.FormHeader.BackColor = RGB(34, 177, 76) see note
End If
'rgb conversion for #22B14C'
It works no problem, however when I close and reopen the form the header has returned to the form property of green, being 'back color #22B14C.
The check box is still true or ticked. How do I maintain the state of the form when the check box is ticked or not.
Thank you in advance.
I have a form with a check box. When the Check box is true I have coded for the Header to turn red. as below. The properties for the header back colour is #22B14C
If Me.AccountOnHold = True Then
Me.FormHeader.BackColor = vbRed
Else: Me.FormHeader.BackColor = RGB(34, 177, 76) see note
End If
'rgb conversion for #22B14C'
It works no problem, however when I close and reopen the form the header has returned to the form property of green, being 'back color #22B14C.
The check box is still true or ticked. How do I maintain the state of the form when the check box is ticked or not.
Thank you in advance.