Link to home
Start Free TrialLog in
Avatar of cekman
cekman

asked on

Calling public procedure from form

I want to call a procedure located in one form from another form. The following syntax works great:

frm.cmb_PgmType_AfterUpdate

Where frm = is an FORM object variable set to the form containing my procedure and cmb_PgmType_AfterUpdate is the name of the procedure being called. NOW....

I want to pass the procedure name as a variable so rather than:
frm.cmb_PgmType_AfterUpdate
I have
frm.myvarname

only this syntax doesn't work. How can I call a form procedure where the name of the procedure is stored in a variable?

Thanks
CEKMAN
ASKER CERTIFIED SOLUTION
Avatar of Helicopter
Helicopter

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of cekman
cekman

ASKER

Helicopter,
Sorry I haven't responded before now - I'm not getting any emails from EE. I will try to test your answer in a day or two and get back here to give you points.

Thanks
CEKMAN
Avatar of cekman

ASKER

Thanks for the help