Thanks in advance for any answers or code snippets I receive. This seems like it would be pretty straightforward, but so far it hasn't worked out for me.
I have a bound subform and I would like it to "do something" when a user performs an action within it; the action could be grabbing the focus of controls within it, clicking within it, typing within it, etc.
Right now, starting out, I am now trying to detect clicks anywhere within it. I've tried the following code with mouse up, mouse down also, but no joy:
The function is attached to the subform itself, with the "On Click" event in the property sheet set to "[Event Procedure]".
The following doesn't seem to work either:
If anyone knows what I am doing incorrectly please let me know. Thanks again for any input
I have a bound subform and I would like it to "do something" when a user performs an action within it; the action could be grabbing the focus of controls within it, clicking within it, typing within it, etc.
Right now, starting out, I am now trying to detect clicks anywhere within it. I've tried the following code with mouse up, mouse down also, but no joy:
Code:
Private Sub Form_Click()
MsgBox "Mouse"
End Sub
The following doesn't seem to work either:
Code:
Private Sub Form_KeyPress(KeyAscii As Integer)
MsgBox "Key"
End Sub