Thank you for your reply, but I wasn't looking for an event to fire
VBA procedures or functions, I am looking for the command which
executes VBA code that I put as a string into a textfield of a form.
Do you have any hints on that?
Thanks in advance
Stephan
> For the whole form look at form_load
> for a field look at fieldname_gotfocus.
[quoted text clipped - 17 lines]
> > Thanks for any suggestions
> > Stephan
Paul Simon - 18 Sep 2003 19:33 GMT
Perhaps the script control on the form?
Paul
> Thank you for your reply, but I wasn't looking for an event to fire
> VBA procedures or functions, I am looking for the command which
[quoted text clipped - 25 lines]
> > > Thanks for any suggestions
> > > Stephan
BJ Freeman - 18 Sep 2003 20:16 GMT
you can not, as far as I know, put a sub /function in string and call it.
However you might look at WithEvents, and see if it will help you.
> Thank you for your reply, but I wasn't looking for an event to fire
> VBA procedures or functions, I am looking for the command which
[quoted text clipped - 25 lines]
> > > Thanks for any suggestions
> > > Stephan
Stephan Gehrlein - 22 Sep 2003 10:29 GMT
Found a way:
eval("string") for functions and
run(vbastring,parameter1,parameter2,....parameter30) for procedures!
works fine except for class functions and procedures. In these cases
you have to generate a kind of buffer procedure to call the class
procedure from there:
e.g.: public function call_class_functionx
call_class_functionx = clsclass.functionx()
end function
Thanks for everybody's help
Stephan
> Thank you for your reply, but I wasn't looking for an event to fire
> VBA procedures or functions, I am looking for the command which
[quoted text clipped - 25 lines]
> > > Thanks for any suggestions
> > > Stephan