We help IT Professionals succeed at work.

keycode = 13 , keydown procedure

davetough asked
Private Sub Text0_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
End If
I am taking over database with form w/ subforms. I have never used keydown.
The Text0 is a textbox that users enter id number and then if there is a match subforms display data from all matching records.
can you tell me what keycode=13 means
thank you
Watch Question

It is the "Enter/Return" key. So when the user hit Enter.
DatabaseMX (Joe Anderson - Microsoft Access MVP)Database Architect / Application Developer
Top Expert 2007
It means that any time the Enter key is pressed, the form is going to be Requeried ... which doens't make much sense.