If I want to put a function in a module, how can I access a control on the form from that function which is inside the module. is there a way that I can reference the form to the module?
Everything you put in a module is available from entire application. And you don't need any additional task to get the code within. Just declare your func with public scope i.e.
Public Function myFunction()
'code ....
End Function
and then you can call this func from every form in your app ... just say: myFunction()
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.