I have below code in the form properies event, I am getting run time error 2105 when I go to last record on both side (Above or below) How can I get rid of this error? Is there any way I can put this code entire form instead of each field properties? Thanks.
Private Sub Remarks_KeyDown(KeyCode As Integer, Shift As Integer)
Select Case KeyCode
Case 40
DoCmd.GoToRecord , , acNext
Case 38
DoCmd.GoToRecord , , acPrevious
End Select
End Sub
Private Sub Remarks_KeyDown(KeyCode As Integer, Shift As Integer)
Select Case KeyCode
Case 40
DoCmd.GoToRecord , , acNext
Case 38
DoCmd.GoToRecord , , acPrevious
End Select
End Sub
Last edited: