0

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

Thanks
John

2
Contributors
2
Replies
6
Views
6 Years
Discussion Span
Last Post by johnbo100
0
If CType(Form1.Controls.Item("CheckBox" & texton), CheckBox).Checked = True Then
            MsgBox("done")
        End If
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.