Next Record (1 Viewer)

lorenzoaj

Registered User.
Local time
Yesterday, 23:22
Joined
Nov 26, 2001
Messages
32
Hello all.

I used the wizard to create command buttons next record and previous record. Is there a way when it gets to the last record to go to the first record? Thanks in advance to anyone who can help point me in the right direction.

AJ
 

chrismcbride

Registered User.
Local time
Today, 06:22
Joined
Sep 7, 2000
Messages
301
This ought to do it...

If Me.CurrentRecord = Me.RecordsetClone.recordCount Then
DoCmd.GoToRecord , , acFirst
Else
DoCmd.GoToRecord , , acNext
End If

HTH
Chris
 

Users who are viewing this thread

Top Bottom