Moving of cursor left to right and top to bottom in a continous form

sanal

Registered User.
Local time
Today, 16:10
Joined
Mar 10, 2018
Messages
11
Is there any way to change the moving of the cursor in a continuous form left to right and top to bottom alternatively by clicking a command button or other means.
 
Hi. Have you tried the DoCmd.GoToRecord and DoCmd.GoToControl methods?
 
Last edited:
on the Form's Event (Key Preview), set it to Yes.
add code to On KeyDown Event of the Form:
Code:
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
   On Error Resume Next
    With Me.Recordset
        If Keycode = 40 'down arrow
            .MoveNext
        Else If Keycode = 38  'up arrow
            .MovePrevious
        End If
    End With
    If keycode = 40 Or Keycode = 38 Then Keycode = 0
End Sub
 

Users who are viewing this thread

Back
Top Bottom