FancyPrairie
Programmer
I've created general purpose routines to handle events on a form (i.e. Activate, Current, etc.). So, for each event I'm handling, I set the appropriate property on the property sheet equal to the function I want to call. But, I need to be able to pass the form object to the routine. For example, the On Current event on the property sheet is set to =MyFunction([Me]). MyFunction is declared as "Function MyFunction(frm as form)". When I open the form I get the error "...The object doesn't contain the Automation object Me".
How do I pass the form object to the function MyFunction?
For simplicity sake (long story) I don't want to pass the name of the form as a string. And I would rather not have to declare a form object inside the function and set it equal to Screen.ActiveForm.
How do I pass the form object to the function MyFunction?
For simplicity sake (long story) I don't want to pass the name of the form as a string. And I would rather not have to declare a form object inside the function and set it equal to Screen.ActiveForm.