T
Tony Vrolyk
(This is a repost of a posting in microsoft.public.access which was an
accident, sorry)
Is there a way to call a function (or sub for that matter) where the
function/sub name is stored in a variable?
For instance lets say I have a table that stores some function names. On a
form I have a list box that displays the records in that table. For this
example lets say they all accomplish similar things and all require the same
numbef of arguments and none of them return a value.
If Call were the right method to accomplis this it might look sometihng like
this
Dim lngArgument as Long
lngArgument = 1234
Call Me.lstBox, lngArgument
In this case Call would run the function whose name is currently the
selected value in Me.lstbox.
Is such a thing possible? I am using Access 2002.
thanks
Tony Vrolyk
accident, sorry)
Is there a way to call a function (or sub for that matter) where the
function/sub name is stored in a variable?
For instance lets say I have a table that stores some function names. On a
form I have a list box that displays the records in that table. For this
example lets say they all accomplish similar things and all require the same
numbef of arguments and none of them return a value.
If Call were the right method to accomplis this it might look sometihng like
this
Dim lngArgument as Long
lngArgument = 1234
Call Me.lstBox, lngArgument
In this case Call would run the function whose name is currently the
selected value in Me.lstbox.
Is such a thing possible? I am using Access 2002.
thanks
Tony Vrolyk