Hi
I have created my own set of cmd buttons to move through records on a parent and several nested subforms. What I need to do is get them to work from where I position the cursor. I thought this was simple, here's the code I am trying to use. The red text is the bit I can't get to work.
Private Sub cmdNext_Click()
On Error GoTo cmdNext_Click_Err
Me!SetFocus.OnCurrent
DoCmd.GoToRecord , "", acNext
cmdNext_Click_Exit:
Exit Sub
cmdNext_Click_Err:
MsgBox Error$
Resume cmdNext_Click_Exit
End Sub
Thanks
Steven811 - complete novice
I have created my own set of cmd buttons to move through records on a parent and several nested subforms. What I need to do is get them to work from where I position the cursor. I thought this was simple, here's the code I am trying to use. The red text is the bit I can't get to work.
Private Sub cmdNext_Click()
On Error GoTo cmdNext_Click_Err
Me!SetFocus.OnCurrent
DoCmd.GoToRecord , "", acNext
cmdNext_Click_Exit:
Exit Sub
cmdNext_Click_Err:
MsgBox Error$
Resume cmdNext_Click_Exit
End Sub
Thanks
Steven811 - complete novice