I am trying to set up an easy way to navigate through records. I would like to be able to type in to a combo box and automatically search records, as well as navigate to the record. Right now I have a combo box that will look at the table for part number, and as you type it will fill in based on the available part numbers. Same for the description. What I want is to use the onchange event to go to the record that contains that part number/description. I have tried this:
Code:
Private Sub cmbPMAlookup_Change()
DoCmd.GoToRecord , , acGoTo = cmbPMAlookup
End Sub
This is not working, I am just getting an error. Also, I want to be able to do the same with a text string (description) as well. What is the best way to accomplish this?