Guys, I'm building an ActiveX control for distribution on the web. I've got no problem with building a control BUT one thing I can't work out. How the hell do I reference a control that I've slapped on the usercontrol from a standard code module? For example if I put a text box on the usercontrol, add a module to the project then I want to write a function that references Text1.Text? VB just doesn't seem to want to let me do that.

I've tried all sorts of ways and can't get any joy. Help? Anyone?