
Calling a procedure using a variable name
Hi,
Try looking at the Eval Function...
On Tue, 27 Mar 2001 14:47:17 +1000, "Neville Satz"
Quote:
>I need to call a procedure in a form. Using the " Call
>Forms!xxx.Btn_Click()" constuct works but I need to be able to specify both
>the form and the button as variables.
>I need something like the following :
> tmp_form = "xxx"
> tmp_button="Btn"
>and then
> Run / Docmd "Call Forms!" & tmp_form & "." & tmp_button & "_Click()"
>Is there any way I can get something similar to work under vba.
>tia
>Neville
---------
Pedro Gil
http://www.geocities.com/pmpg98_pt
DDPI
http://www.users.bigpond.com/papwalker/DDPI.HTML
https://sourceforge.net/projects/ddpi/