A
Allen Browne
Eval() will be your best shot.
Allen Browne said:RunCode accepts the name of a function to be run. Off the top of my head, I
can't think of a way to execute a string like that.
A fairly ridiculous work around might be to open a form in design view
(hidden), assign the string to the form's On Close property, close it, open
it in form view (but hidden) and then close it. The Close event would
trigger the code. Did not have to be that event, but you get the idea.