matrixindicator
IS-IT--Management
sorry, I can't get out.
I have a number of buttons, they can be numbered like
btn1, btn2, btn3, btn15, ...
With the event OnClick on a button is a macro activated that run a procedure, this is a function.
Above is working, but the name of the function is here fixed. How can I say take the actual button. The name of the button is variable.
I have a number of buttons, they can be numbered like
btn1, btn2, btn3, btn15, ...
With the event OnClick on a button is a macro activated that run a procedure, this is a function.
Code:
testfunct(btn1.caption)
Function testfunct(ctl As String)
Forms![14]!txtIDART = ctl
End Functionc
Above is working, but the name of the function is here fixed. How can I say take the actual button. The name of the button is variable.