OK, I know I am close on this one, just can’t seem to find exactly the right code to make it work.
I have a form with a combo box that displays the names of customers from the tblCustomers table. Beside that I have a button that opens a split form of the tblCustomers table so the user can edit the table if they wish.
When clicking the button to open the split form, I would like the record that was last selected in the combo box to be the one highlighted in the split form. I am trying to use GoToRecord, but can’t seem to make it work.
I need to somehow get the value of the combo box and put it at the end of the GoToRecord command…but how?Code:Private Sub Form_Load() DoCmd.GoToRecord , , acGoTo, [what goes here?] End Sub
Thanks for the help!