Can you tell me wich is the ascii code for the enter button please and can you tell me also if this code is correct:

Code:
Private Sub Form_KeyPress(KeyAscii As Integer)
    If KeyAscii = 28 Then
        Command1_Click
    End If
End Sub
numibesi