^ You can delete your post, instead of just editing itPlease ignore this one
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyDown Then
DoCmd.GoToRecord acDataForm, Me.Form.Name, acNext
End If
End Sub
way2bord,
I was sure there was a delete option, but I looked and couldn't find one -- so practicality took over --delete the text.
Also, I know I should be getting emails regarding posts, but I'm not and haven't been for over a month -- you got an answer for that one?
...You'll have to play with it to make it work how you want...
Private Sub Form_Load()
Me.KeyPreview = True
End Sub
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If Me.CurrentRecord <> Me.RecordsetClone.RecordCount Then
If KeyCode = vbKeyDown Then
DoCmd.GoToRecord acDataForm, Me.Form.Name, acNext
Screen.PreviousControl.SetFocus
End If
Else
MsgBox "You Are On the Last Record!"
KeyCode = 0
End If
End Sub
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
Select Case KeyCode
Case vbKeyDown
If CurrentRecord <> RecordsetClone.RecordCount Then
DoCmd.GoToRecord , , acNext
Screen.PreviousControl.SetFocus
Else
Msgbox “You Are On the Last Record!”
End If
KeyCode = 0
Case vbKeyUp
If CurrentRecord <> 1 Then
DoCmd.GoToRecord , , acPrevious
Screen.PreviousControl.SetFocus
Else
Msgbox “You Are On the First Record!”
End If
KeyCode = 0
End Select
End Sub
DoCmd.GoToRecord acDataForm, [COLOR="Red"]Me.Form.Name[/COLOR], acNext