I have a subroutine to go to the next record on the click event of a command button that I have been successfully using to replace the built in navigation buttons for single-form-view subforms, but when I apply it to a continuous subform, the parent form changes to the next record. I want to prevent my users from filtering or searching, which is why I'm choosing to eliminate navigation buttons. How can I prevent the parent form from skipping to the next record when I have already set the focus to the subform?
Private Sub CmdNextRecord_Click()
On Error Resume Next
Forms![frmParent]![fsubChild].SetFocus
DoCmd.GoToRecord , , acNext
Forms![frmParent].SetFocus
End Sub