I wish to access some controls added during runtime.

My codes is as follows.

Private Function AddCombo()

Dim myCombo as ComboBox
Dim line as integar

Set myCombo = frame1.controls.add("Forms.ComboBox.1", "Combo" & line, true)

line = line + 1

End Function

Private Sub CommandButton1_Click()
' This is where i am having problems
'
Dim myCombo as ComboBox

Set myCombo = Form1!("Combo" & line)
myCombo.Visible = False
:
:
End Sub