can't go to specified record help

  • Thread starter Thread starter Ian
  • Start date Start date
I

Ian

Hi,

While doing

DoCmd.GoToRecord , , acNext

If get the above message how can i stop the message from
appearing

Thanks

Ian
 
Hi,

While doing

DoCmd.GoToRecord , , acNext

If get the above message how can i stop the message from
appearing

By not doing it unless there *is* a next record:

If Me.EOF Then
<do whatever you want done if the user is at the last record>
Else
DoCmd.GoToRecord , , acNext
End If
 
Back
Top