D Dody Registered User. Local time Today, 23:23 Joined Feb 17, 2010 Messages 10 Mar 13, 2010 #1 Hello How to prevent my for going to 1st record in table…?? Thank you
John Big Booty AWF VIP Local time Tomorrow, 07:23 Joined Aug 29, 2005 Messages 8,250 Mar 13, 2010 #2 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
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
V vbaInet AWF VIP Local time Today, 20:23 Joined Jan 22, 2010 Messages 26,374 Mar 13, 2010 #3 You may also want to count the records before moving next or have Resume Next in your error handler.
missinglinq AWF VIP Local time Today, 15:23 Joined Jun 20, 2003 Messages 6,417 Mar 13, 2010 #4 Where do you want the for to go when opening?
HiTechCoach Well-known member Local time Today, 14:23 Joined Mar 6, 2006 Messages 4,357 Mar 13, 2010 #5 Dody said: Hello How to prevent my for going to 1st record in table…?? Thank you Click to expand... 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.
Dody said: Hello How to prevent my for going to 1st record in table…?? Thank you Click to expand... 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.