P
PeteCresswell
Access 2003.
---------------------------------------------------------------------------------
Public Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
MsgBox "You Have Arrived", , "Greetings Pilgrim:"
End Sub
----------------------------------------------------------------------------------
But the code never seems to execute.
The form also has a subform, where I coded:
---------------------------------------------------------------------------------
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
Me.Parent.KeyDown
End Sub
----------------------------------------------------------------------------------
But even when I select a Label or TextBox on the parent form, the
event
still does not seem to fire.
I guess the workaround is to code a KeyDown event for each and every
object on both parent and child forms.
Am I missing something obvious?
---------------------------------------------------------------------------------
Public Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
MsgBox "You Have Arrived", , "Greetings Pilgrim:"
End Sub
----------------------------------------------------------------------------------
But the code never seems to execute.
The form also has a subform, where I coded:
---------------------------------------------------------------------------------
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
Me.Parent.KeyDown
End Sub
----------------------------------------------------------------------------------
But even when I select a Label or TextBox on the parent form, the
event
still does not seem to fire.
I guess the workaround is to code a KeyDown event for each and every
object on both parent and child forms.
Am I missing something obvious?