Catching all click events in one handler with Microsoft Access
-
04-07-2021 - |
题
I am making an on-screen custom keyboard, and I am wondering how to send all click events to one method and have it determine what to do based on the name of the control. Is this possible?
解决方案
You can set the On Click line to the name of a function, say =MyFunction()
Then:
Function MyFunction()
'The button that was clicked
Debug.Print Screen.ActiveControl.Name
End Function
不隶属于 StackOverflow