referring to control

MvP14

Registered User.
Local time
Today, 13:56
Joined
Apr 15, 2003
Messages
66
I have five controls named cbbx0 to cbbx4 on selectionform.

I have a loop for i = 0 to 4.

I have f set as forms!selectionform

How can I refer to the controls?

If have this

For i = 0 to conMaxControls - 1

If f.["cbbx" & i].enabled Then ...


But it doesn't work. Can anyone help me? Thanks in advance!
 
If f.Controls("cbbx" & i).Enabled = True
 

Users who are viewing this thread

Back
Top Bottom