Capturing runtime created control events
I'm adding controls at runtime but need to be able to capture their events. For example.
Set mycmd = Controls("Frame" & (x)).Add("Forms.CheckBox.1")
How do i capture the click event from this newly formed check box.
i tried to name it and write code based on thAt name but i't doesn't work
ie
mycmd.name = "newcheck"&x
Private Sub newcheck1_Click()
Call whatever
End Sub
this won't work.
Anyone have any idea on how to do this, even an idea of were i could find how to do this?
Thanks
-Ted