M
Michelle
r have a form (with a subform) with an "active" employee and "inactive"
employee checkbox. When a user clicks the "active" employee the background
of the main form remains the same color (this is what I want). When the user
clicks the "inactive" employee checkbox the background of the main form turns
Red (this is also what I want). However, the check boxes don't "toggle"
(meaning both boxes remain checked). I am able to select, then deselect the
"active" button and then select the "inactive" button but I would like the
user to be able to "toggle". When I tried setting up the check boxes in an
option group, the buttons don't remain "checked". The background color
changes, but it does not show which button is checked.
I have a macro set up on the "click" event of the checkbox of the "active"
employee keeping the background color the same, and another one on the
"click" event of the checkbox of the "inactive" employee changing the
background to "red".
Below is the code I have for "After Update" and I also have the same code
set up for the "Current" event.
Private Sub Form_AfterUpdate()
If [Active_Employee] = True Then
[Detail].BackColor = 16764057
Else
[Detail].BackColor = vbRed
End If
End Sub
I know what I'm trying to say just hope I'm explaining it correctly.
Thanks in advance for your help.
employee checkbox. When a user clicks the "active" employee the background
of the main form remains the same color (this is what I want). When the user
clicks the "inactive" employee checkbox the background of the main form turns
Red (this is also what I want). However, the check boxes don't "toggle"
(meaning both boxes remain checked). I am able to select, then deselect the
"active" button and then select the "inactive" button but I would like the
user to be able to "toggle". When I tried setting up the check boxes in an
option group, the buttons don't remain "checked". The background color
changes, but it does not show which button is checked.
I have a macro set up on the "click" event of the checkbox of the "active"
employee keeping the background color the same, and another one on the
"click" event of the checkbox of the "inactive" employee changing the
background to "red".
Below is the code I have for "After Update" and I also have the same code
set up for the "Current" event.
Private Sub Form_AfterUpdate()
If [Active_Employee] = True Then
[Detail].BackColor = 16764057
Else
[Detail].BackColor = vbRed
End If
End Sub
I know what I'm trying to say just hope I'm explaining it correctly.
Thanks in advance for your help.