FancyPrairie
Programmer
I have a public function, within a form module, that I'm having trouble executing.
Here's how it works...Form A contains a subform (Form B). When the users clicks a button on Form B, Form C is opened as a popup. And Form C is passed the name of the function (foo) it is supposed to call when the user selects something. So, Form C calls a public Function located in subform B. I have tryed using the following syntaxes but with no luck. Any suggestions?
1. Eval("forms!FormA!FormB.form.foo")
2. Eval("forms(""FormA"")(""FormB"").form.foo")
3. Eval("Forms.FormA.FormB.form.foo")
Note that all 3 methods work in Debug's Immediate window. Well, that is, they work without the Eval statement. For example, the function foo is opened if I type, for example, Forms!FormA!FormB.form.foo in debug's immediate window.
Here's how it works...Form A contains a subform (Form B). When the users clicks a button on Form B, Form C is opened as a popup. And Form C is passed the name of the function (foo) it is supposed to call when the user selects something. So, Form C calls a public Function located in subform B. I have tryed using the following syntaxes but with no luck. Any suggestions?
1. Eval("forms!FormA!FormB.form.foo")
2. Eval("forms(""FormA"")(""FormB"").form.foo")
3. Eval("Forms.FormA.FormB.form.foo")
Note that all 3 methods work in Debug's Immediate window. Well, that is, they work without the Eval statement. For example, the function foo is opened if I type, for example, Forms!FormA!FormB.form.foo in debug's immediate window.