Hi, this code is in a combobox. I can't seem to get it to function. I am siply trying to filter the form by the Field [YEAR] for only 2008 and 2009. The field type is TEXT and not date.
Code:
Private Sub cboFields_BeforeUpdate(Cancel As Integer)
Me.FilterOn = False
If IsNull(Me.cboFields) Then
Me.FilterOn = False
Else
Me.Filter = "[Year] = IN('2009','2010')"
Me.FilterOn = True
End If
End Sub