I'm trying to use a unbound combobox with a ID and Name field (only displaying name) on a split form that will apply a filter or use findrecord in the afterupdate event of the combobox to go to the record in the split form selected by the combo box. Findrecord wasn't working, so I tried filter using this code:
Code:
Private Sub Combo11_AfterUpdate()
Me.Filter = "Supervisor_ID=" & Me.Combo11 & ""
Me.FilterOn = True
End Sub
But it prompts for the supervisor ID, even though the code shows that the value passed should be correct. If I manually enter the ID in the prompt, the filter applies as how I was expecting the code would work. Any insight? Thanks!