Hi
I have a form and I want to allow user to navigate all fields using "enter key" but I don't want to do it using arrays.I have to use this in many form so I need just one function which i will write inside form_keypress() event.It will read the current tabindex and shift cursor to next tabindex on enter ket press.


Private Sub Form_KeyPress(KeyAscii As Integer)

If KeyAscii = 13 Then

MsgBox KeyAscii

' THE CODE

End If

End Sub


Please reply ASAP.


thanks,

sincerely,
summerisland