Hi
My own nav buttons work well with the exception of the next button. I only want it to go to current records and not past them as I have another button for that function.
How would I modify the code?
Here is what I currently use:
[Private Sub cmdGotoNext_Click()
On Error GoTo cmdGotoNext_Click_Err
Screen.PreviousControl.SetFocus
DoCmd.GoToRecord , "", acNext
cmdGotoNext_Click_Exit:
Exit Sub
cmdGotoNext_Click_Err:
MsgBox Error$
Resume cmdGotoNext_Click_Exit
End Sub]
Thanks
Steven811
My own nav buttons work well with the exception of the next button. I only want it to go to current records and not past them as I have another button for that function.
How would I modify the code?
Here is what I currently use:
[Private Sub cmdGotoNext_Click()
On Error GoTo cmdGotoNext_Click_Err
Screen.PreviousControl.SetFocus
DoCmd.GoToRecord , "", acNext
cmdGotoNext_Click_Exit:
Exit Sub
cmdGotoNext_Click_Err:
MsgBox Error$
Resume cmdGotoNext_Click_Exit
End Sub]
Thanks
Steven811