Mike,
The Wizards are reknowned for generating some fairly stodgey code. I'd be inclined to rewrite them:
Private Sub cmdMoveNext_Click()
Me.cmdMovePrevious.Enabled = True
If Not Me.NewRecord Then
DoCmd.GoToRecord , , acNext
If Me.NewRecord Then
DoCmd.GoToRecord , , acPrevious
Me.cmdMovePrevious.SetFocus
Me.cmdMoveNext.Enabled = False
End If
End If
End Sub
Private Sub cmdMovePrevious_Click()
On Error Resume Next
Me.cmdMoveNext.Enabled = True
If Not Me.RecordsetClone.BOF Then
DoCmd.GoToRecord , , acPrevious
If Err <> 0 Then
Me.cmdMoveNext.SetFocus
Me.cmdMovePrevious.Enabled = False
End If
End If
End Sub
In any case, for general questions about Access, refer to the following page for information about logging onto the Microsoft newsgroups, where you can get help 24/7.
http://www.pacificdb.com.au/MVP/newsgroup.htm
Graham R Seach
Microsoft Access MVP