PC Review


Reply
Thread Tools Rate Thread

Call procedure from form

 
 
MKM
Guest
Posts: n/a
 
      26th Sep 2003
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
 
Reply With Quote
 
 
 
 
Albert D. Kallal
Guest
Posts: n/a
 
      27th Sep 2003

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.


--
Albert D. Kallal (MVP)
Edmonton, Alberta Canada
(E-Mail Removed)
http://www.attcanada.net/~kallal.msn


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I call a procedure in Main form from sub-form? Dennis Microsoft Access Form Coding 2 22nd May 2010 10:25 PM
Call subform event procedure from main form event procedure ? =?Utf-8?B?cGxj?= Microsoft Access Form Coding 2 26th Oct 2006 10:15 PM
Call a procedure from one form to another Ivan Sammut Microsoft C# .NET 1 5th Mar 2005 05:14 PM
Frozen Form after a procedure call dan Microsoft Access Form Coding 1 10th Mar 2004 02:16 PM
can't call Designer procedure from Form Geo Microsoft Outlook Program Addins 6 30th Jul 2003 04:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:07 PM.