I have a combo box and a button on a form. I would like the go to the record selected in combo box on another form when the button is clicked. Also, the first form is closed when I click the button too.
I'm getting an error on the GoToRecord line.
Code:
Private Sub Edit_Click()
DoCmd.OpenForm "3rdfrm_AddEdit"
DoCmd.GoToRecord , acNormal, acGoTo, Me.SearchVariance
DoCmd.Close acForm, "2ndfrm_AddEditView"
End Sub
I'm getting an error on the GoToRecord line.