F
Froto
I'm created a calandar in Microsoft access, and have a
checkbox in each sqaure that if selected it changes the
background color to red and if unselected it changes back
to white. Here is the code thats in the on current event
of the form.
Private Sub Form_Current()
If Me!Check1.Value = True Then
Me!ID1.BackColor = vbRed
Else
Me!ID1.BackColor = vbWhite
End If
End Sub
What I need is how to change the code so that it changes
the color for every box selected, the code above only
does 1 box, so if user selects box 1 and box 6 and box 10
it would only change the background for those boxes, I
have 31 boxes each with a checkbox.
Thanks for all the help
checkbox in each sqaure that if selected it changes the
background color to red and if unselected it changes back
to white. Here is the code thats in the on current event
of the form.
Private Sub Form_Current()
If Me!Check1.Value = True Then
Me!ID1.BackColor = vbRed
Else
Me!ID1.BackColor = vbWhite
End If
End Sub
What I need is how to change the code so that it changes
the color for every box selected, the code above only
does 1 box, so if user selects box 1 and box 6 and box 10
it would only change the background for those boxes, I
have 31 boxes each with a checkbox.
Thanks for all the help