Filter question
Here’s my code:
Private Sub cmd2002_Click()
'remove filter..
DoCmd.ShowAllRecords
'add filter..
DoCmd.ApplyFilter , Right(Me![MediaStartDate], 1) = 2
End Sub
It appears in my form & is meant to remove the form’s filter & then apply a filter that will return records that apply to the year 2002. However currently the form will return a blank new record instead of a 2002 records. I do have some 2002 records & the forms onCurrent event is not causing the problem either.
Here’s my code:
Private Sub cmd2002_Click()
'remove filter..
DoCmd.ShowAllRecords
'add filter..
DoCmd.ApplyFilter , Right(Me![MediaStartDate], 1) = 2
End Sub
It appears in my form & is meant to remove the form’s filter & then apply a filter that will return records that apply to the year 2002. However currently the form will return a blank new record instead of a 2002 records. I do have some 2002 records & the forms onCurrent event is not causing the problem either.