Call procedure from form

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
 
A

Albert D. Kallal

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top