How to prevent my for going to 1st record in table…

Dody

Registered User.
Local time
Today, 23:23
Joined
Feb 17, 2010
Messages
10
Hello

How to prevent my for going to 1st record in table…??
Thank you
 
I'm not sure why you would want to do that, but the following code will do the trick if you put it in your Form's On Current Event;
Code:
    If Me.CurrentRecord = 1 Then
        DoCmd.GoToRecord acDataForm, "YourFormName", acNext
    End If
 
You may also want to count the records before moving next or have Resume Next in your error handler.
 
Hello

How to prevent my for going to 1st record in table…??
Thank you


I am really curious why you would want to do this. +ould you mind explaing?

if you do not want a specific record to show, you could filter it out in the rrcord source.
 

Users who are viewing this thread

Back
Top Bottom