M
Marcel K.
Greetings - can you offer suggestion on how to loop
through controls - control arrays don't exist in Access
97. I made naming convention to test for value in
checkbox control if not false, then enable the
corresponding combobox. There is no relation from
checkbox to combobox other than through naming
convention...
chk_1.....cbo_1...
I want to loop and increment reference to control but am
not having luck...
Regards,
Marcel K.
If (Len(Me.chk_1 & vbNullString) = 0 Or Me.chk_1 = False)
Then
Me.cbo_1.Enabled = False
Me.cbo_1.BackColor = 16777215
Else
Me.cbo_1.Enabled = True
Me.cbo_1.BackColor = 8454143
End If
If (Len(Me.chk_2 & vbNullString) = 0 Or Me.chk_2 = False)
Then
Me.cbo_2.Enabled = False
Me.cbo_2.BackColor = 16777215
Else
Me.cbo_2.Enabled = True
Me.cbo_2.BackColor = 8454143
End If
If (Len(Me.chk_3 & vbNullString) = 0 Or Me.chk_3 = False)
Then
Me.cbo_3.Enabled = False
Me.cbo_3.BackColor = 16777215
Else
Me.cbo_3.Enabled = True
Me.cbo_3.BackColor = 8454143
End If
through controls - control arrays don't exist in Access
97. I made naming convention to test for value in
checkbox control if not false, then enable the
corresponding combobox. There is no relation from
checkbox to combobox other than through naming
convention...
chk_1.....cbo_1...
I want to loop and increment reference to control but am
not having luck...
Regards,
Marcel K.
If (Len(Me.chk_1 & vbNullString) = 0 Or Me.chk_1 = False)
Then
Me.cbo_1.Enabled = False
Me.cbo_1.BackColor = 16777215
Else
Me.cbo_1.Enabled = True
Me.cbo_1.BackColor = 8454143
End If
If (Len(Me.chk_2 & vbNullString) = 0 Or Me.chk_2 = False)
Then
Me.cbo_2.Enabled = False
Me.cbo_2.BackColor = 16777215
Else
Me.cbo_2.Enabled = True
Me.cbo_2.BackColor = 8454143
End If
If (Len(Me.chk_3 & vbNullString) = 0 Or Me.chk_3 = False)
Then
Me.cbo_3.Enabled = False
Me.cbo_3.BackColor = 16777215
Else
Me.cbo_3.Enabled = True
Me.cbo_3.BackColor = 8454143
End If