Form_KeyDown(): Not Firing?

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top