M
mkj
Hello,
Can anyone tell me how I pass the button I have just clicked into function
that the OnClick event calls?
My Button calls a function with this setup:
"Function ButtonClicked(MyForm As Form, MyButton As CommandButton)..."
The button's Onclick event is "=ButtonClicked([Form],[CommandButton])"
[Form] passes in the current Form, which is what I want, and why I was
hoping [CommandButton] would pass in the current button, but it doesn't!
Can anyone shed light on where I'm going wrong?
Thanks very much,
Mike
Can anyone tell me how I pass the button I have just clicked into function
that the OnClick event calls?
My Button calls a function with this setup:
"Function ButtonClicked(MyForm As Form, MyButton As CommandButton)..."
The button's Onclick event is "=ButtonClicked([Form],[CommandButton])"
[Form] passes in the current Form, which is what I want, and why I was
hoping [CommandButton] would pass in the current button, but it doesn't!
Can anyone shed light on where I'm going wrong?
Thanks very much,
Mike