Calling Form in Global Function
Posted on 2002-03-08
In our global functions in code modules, we very often need to extract parameters from variables in the form that called the function, like so:
Public Function Foo(frmCaller As Form) As Boolean
Dim x as Integer
x = frmCaller.intDataInForm
... more code ...
I'm hoping this is a need that is so common that there is a slick way to handle it. It seems dopey to specify "frmCaller" in so many global functions.