Hi,
I'm trying to call function with a parameter and that parameter is a function with parmaters, so it can be bound to the onchange event of a form....
so I have a function header...
I call it with the following
In the inputZoom function i have...
Obviously this isn't working, but the logic is there , i just need the syntax.
how do you create a variable that is actually a dynamically created function and then execute the code?
Like you do with javascript
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Electronic Dance Music Downloads
I'm trying to call function with a parameter and that parameter is a function with parmaters, so it can be bound to the onchange event of a form....
so I have a function header...
Code:
Public Function inputZoom(sTitle As String, Optional ByVal func As String)
I call it with the following
Code:
inputZoom("Documents Request Notes","setDocs([forms]![Check_Docs].Docs_Form.Form, ([forms]![Check_Docs].Notes)")
In the inputZoom function i have...
Code:
If Not IsMissing(func) Then
Forms("inputPopUp").inputTextBox.OnChange = func
End If
Obviously this isn't working, but the logic is there , i just need the syntax.
how do you create a variable that is actually a dynamically created function and then execute the code?
Like you do with javascript
Code:
var f = new Function(“alert(‘Function called’);”);
f();
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Electronic Dance Music Downloads