Wrathchild
Technical User
I'm trying to use Call with a variable that holds a function name to run it...is that possible? So instead of Call Function1 I would have Call x (where x = "Function1"
I have a table of report names and the modules that need to be run when one is selected so I have the module name being returned and assigned to a variable but I can't figure out how to call it. I've tried the Callbyname function but I can't get the correct syntax; don't even know if that's what I need to use.
For Callbyname I've tried:
Callbyname Me, variablename, VbMethod
the variablename is coming thru ok, but I know the first part is wrong...need an object, but what? Form name didn't work.
For Callbyname I've tried:
Callbyname Me, variablename, VbMethod
the variablename is coming thru ok, but I know the first part is wrong...need an object, but what? Form name didn't work.