In a continuos form, ¿how can I get that the Enter on a field changes to the same field, next record, and not to the next field (moving vertically and not horizontally)?
I found an example that changes the behaivor of the Enter Key to "Don't move":
But I need to move to the next record of the same field (move down). I tried to set KeyCode = vbKeyDown but also this key move to the next field (moves right). ¿What should I set the KeyCode?
I found an example that changes the behaivor of the Enter Key to "Don't move":
Code:
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
KeyCode = 0
End If
End Sub
Comment