Call procedure from form

  • Thread starter Thread starter MKM
  • Start date Start date
M

MKM

How can you call a sub when the sub name is derived from a
menu (form). Example:
Call Forms!frmMenu.Column(2)
Column(2) is the name of the sub.
MKM
 
You can call functions as follows:


dim strWhatFunction as string

strWhatFunction = "MyTest()"

Eval (strWhatFunction)

You can not do this for a sub, but you certainly can for a function. You do
have to include the () as above.
 
Back
Top