I need to be able to filter a continuous form based on a value in a combo box. The code below does not work. How can I fix it to make it work? I suppose the issue is related to using quotes in the Me.Filter = expression, but I don't understand when and how to use quotes in certain kinds of expressions, such as this.
Code:
Private Sub cbo_FilterOn_AfterUpdate()
If IsNull(Me.cbo_FilterOn) Then
Me.Filter = ""
Me.FilterOn = False
Else
Me.Filter = InStr[Comment], cbo_FilterOn)
Me.FilterOn = True
End If
End Sub