Access Event Parameters From A Custom Function
Posted on 2008-10-23
Does anyone know a way to access the parameters exposed by an event in a custom function call?
For example, if you set the OnKeyDown event property for SomeField to [Event Procedure] then access creates the following in the Form's class module:
Private Sub SomeField_KeyDown(KeyCode As Integer, Shift As Integer)
I would like to be able to set the OnKeyDown event property for SomeField to =MyKeyDownFunction() and then write a function like:
Public Function MyKeyDownFunction()
Select Case KeyCode
I want to know if there is any way to get to these auto-generated parameters other than setting the event property to "[Event Procedure]".