A family of Microsoft relational database management systems designed for ease of use.
ciao Stefen,
if you are on the first record and you are trying to move back again :
Private Sub cmdMovePrevious_Click()
If Me.CurrentRecord = 1 Then Exit Sub
DoCmd.GoToRecord acDataForm, Me.Name, acPrevious
End Sub
if you are on the last record and you are trying to move ahead again :
Private Sub cmdMoveNext_Click()
If Me.CurrentRecord = Me.RecordsetClone.RecordCount Then Exit Sub
DoCmd.GoToRecord acDataForm, Me.Name, acNext
End Sub
of course, you could also advise your user with a msgbox notifying you are on the first or on the last records and you cannot move back or ahead....
Moreover, I would recommend to rename the controls in your with more significant names....Command25 cannot allow you to understand what it stands for...
ciao, Sandro.