I have a list of reports/processes that are in a table.
And I want to select from that list and call the procedure that I have associated with it.
Here is some sample data:
ReportName ReportFile Procedure
Weekly Rpt rptWkSum cmdWkSumAll
I have a combo box setup on my form. There are 3 columns in the Combo box (the three shown above).
I can pass info to the "Event Procedure" just fine. What I am struggling with is how to "Call" that procedure. I can pass the cmdWkSumAll just fine to the Event Procedure, but how do I do a Call or execute that parameter (that is a procedure).
Simple example of code:
Private Sub Combo20_AfterUpdate()
Dim strCmd
strCmd = Me.Combo20.Column(2)
MsgBox strCmd
Call strCmd
End Sub
And I want to select from that list and call the procedure that I have associated with it.
Here is some sample data:
ReportName ReportFile Procedure
Weekly Rpt rptWkSum cmdWkSumAll
I have a combo box setup on my form. There are 3 columns in the Combo box (the three shown above).
I can pass info to the "Event Procedure" just fine. What I am struggling with is how to "Call" that procedure. I can pass the cmdWkSumAll just fine to the Event Procedure, but how do I do a Call or execute that parameter (that is a procedure).
Simple example of code:
Private Sub Combo20_AfterUpdate()
Dim strCmd
strCmd = Me.Combo20.Column(2)
MsgBox strCmd
Call strCmd
End Sub