G
Guest
Is there a way to pass the value of variable from a function to command
button on a form so that the value of the variable will determine the action
taken such as below:
Sub CommandButton_Click(stRpt)
If stRpt="First" then
Do First Report
Elseif stRpt="Second" then
Do Second Report
End If
End Sub
Or perhaps there is a better approach. Any help will be appreciated.
I apologize if this is a duplicate post. I'm not sure my first one went
through.
button on a form so that the value of the variable will determine the action
taken such as below:
Sub CommandButton_Click(stRpt)
If stRpt="First" then
Do First Report
Elseif stRpt="Second" then
Do Second Report
End If
End Sub
Or perhaps there is a better approach. Any help will be appreciated.
I apologize if this is a duplicate post. I'm not sure my first one went
through.