P
Pendragon
Access 03/winxp
I have a function which sets a string variable to the name of a public
procedure based on a case statement. How do I then execute the procedure
when the procedure name is stored in the string variable?
strGetProc = oCalc.GetRdTemplate(NumberOfTeams)
GetRdTemplate is the function which executes a case statement to determine
which procedure should be run. NumberOfTeams is the integer variable passed
to the function and is the criteria for the case statement.
What is my next line of code to properly execute the procedure now stored in
strGetproc?
All possible procedures from the case statement are in the module
mod_NewTourney. I tried
strGetProc = "modNewTourney." & strGetproc
Call strGetProc
and some variations but always get a sub or function not defined error.
Any help is appreciate!!
Happy Holidays!
I have a function which sets a string variable to the name of a public
procedure based on a case statement. How do I then execute the procedure
when the procedure name is stored in the string variable?
strGetProc = oCalc.GetRdTemplate(NumberOfTeams)
GetRdTemplate is the function which executes a case statement to determine
which procedure should be run. NumberOfTeams is the integer variable passed
to the function and is the criteria for the case statement.
What is my next line of code to properly execute the procedure now stored in
strGetproc?
All possible procedures from the case statement are in the module
mod_NewTourney. I tried
strGetProc = "modNewTourney." & strGetproc
Call strGetProc
and some variations but always get a sub or function not defined error.
Any help is appreciate!!
Happy Holidays!