F
Froto
It's me again. I tried the help that tina gave.
Private Sub SetBackColor(ByVal ctlBox As Control)
If Screen.ActiveControl = True Then
ctlBox.BackColor = 255
Else
ctlBox.BackColor = 16777215
End If
End Sub
on each checkbox's AfterUpdate event, add the following
procedure, as
Private Sub YourCheckBox_AfterUpdate()
SetBackColor Me!YourSquareControlName
End Sub
It works but the problem is when I close the database and
reopen it, the backcolor is gone so the real problem is
how do I get the textbox to retain the backcolor after
database is closed.
Private Sub SetBackColor(ByVal ctlBox As Control)
If Screen.ActiveControl = True Then
ctlBox.BackColor = 255
Else
ctlBox.BackColor = 16777215
End If
End Sub
on each checkbox's AfterUpdate event, add the following
procedure, as
Private Sub YourCheckBox_AfterUpdate()
SetBackColor Me!YourSquareControlName
End Sub
It works but the problem is when I close the database and
reopen it, the backcolor is gone so the real problem is
how do I get the textbox to retain the backcolor after
database is closed.