Hello,
I am trying to change the back color of all the controls in the current record and having trouble.
Here is the code I am trying:
Can this be done?
Thanks,
Sylvain
I am trying to change the back color of all the controls in the current record and having trouble.
Here is the code I am trying:
Code:
Private Sub Check64_Click()
'Dim frm As Form
Dim txtbox As TextBox
Dim colec As Collection
Dim ctr As Controls
'Set frm = Forms!frmExtras.Form
For Each ctr In colec
If Me.Check64 = True Then
txtbox.BackColor = vbRed
End If
Next
End Sub
Can this be done?
Thanks,
Sylvain