Hi All

So I have 2 forms

form 1 has a list of checkboxes on it

form 2 needs to check if one of the form 1 checkboxes is checked.

Please see the code below:

texton is a value passed from a function parameter of type string

If (Form1.Controls.Item("checkbox" & texton).checkstate" = True) Then
'Do Something        
End If

When I get to "If (Form1.Controls.Item("checkbox" & texton).<-- this point, intellisense does not list .checkstate or .checked as a member of checkbox from form1.

Any ideas


If CType(Form1.Controls.Item("CheckBox" & texton), CheckBox).Checked = True Then
        End If

Works great

Once again,
Many thanks codeorder