Hi there
Please excuse me i am a novice at access. I am getting a runtime error '2110' - access can't move the focus to the control ProductID
What i am trying to do is when a query is ran from the products form it displays another form with all possible matching records (this works ok), but the next step is if you click on one the the matches is should then take you back to the first form and display the relevent information for the record you selected.
when selecting which record i want to go to, i get the runtime error:
here is the code that i am using:
Private Sub List0_Click()
SearchID = List0
DoCmd.OpenForm "Products"
DoCmd.GoToControl "ProductID"
DoCmd.Close acForm, "frmProduct"
DoCmd.FindRecord SearchID
End Sub
Any ideas, thanks
Please excuse me i am a novice at access. I am getting a runtime error '2110' - access can't move the focus to the control ProductID
What i am trying to do is when a query is ran from the products form it displays another form with all possible matching records (this works ok), but the next step is if you click on one the the matches is should then take you back to the first form and display the relevent information for the record you selected.
when selecting which record i want to go to, i get the runtime error:
here is the code that i am using:
Private Sub List0_Click()
SearchID = List0
DoCmd.OpenForm "Products"
DoCmd.GoToControl "ProductID"
DoCmd.Close acForm, "frmProduct"
DoCmd.FindRecord SearchID
End Sub
Any ideas, thanks