sk1hotpepr
Technical User
I set up a filter for a combo box on my form but I'm trying to figure out why when I click in my combo box and choose what I want to filter, it won't filter the first time. If I click an item to filter a second time, then it will work. Has anyone seen this/ know what I'm doing wrong? Here's my combo box code:
Code:
Private Sub Combo125_AfterUpdate()
Dim myStr As String
Me.Combo125.SetFocus
myStr = Me.Combo125.Value
Me.Filter = "ContractorID = " & myStr & " AND ProjectNumber = '" & Me.ProjectNum & "'"
Me.FilterOn = True
Me.Refresh
End Sub