J
John B. Smotherman
I have multiple functions that differ in name only by two characters (ie,
DoPage01(), DoPage05(), DoPage10(), etc.) I was calling them using a
Select...Case structure but recent reading pointed me to the Eval function,
and I thought that made much better sense than this really large
Select...Case, so I changed it to an Eval.
I build the function name into a string variable, and use the following:
bDone = Eval(sFunctionName) <==all the functions return a boolean
The problem is the Eval fails with error 2425 - function not found. I've
double-checked the string variable and the function name in it is correct.
Any ideas?
Thanks.
DoPage01(), DoPage05(), DoPage10(), etc.) I was calling them using a
Select...Case structure but recent reading pointed me to the Eval function,
and I thought that made much better sense than this really large
Select...Case, so I changed it to an Eval.
I build the function name into a string variable, and use the following:
bDone = Eval(sFunctionName) <==all the functions return a boolean
The problem is the Eval fails with error 2425 - function not found. I've
double-checked the string variable and the function name in it is correct.
Any ideas?
Thanks.