Using te same method as I mentioned recently I'm trying to have a field on my form to enable me to filter records by their date. Code I'm using is the same as the text variables on the After_Update as follows:
Dim strFilter As String
strFilter = "[ExpiryDate] = '" & Me.srcExpDate & "'"
DoCmd.ApplyFilter , strFilter
The problem is that because the table holds a date variable for this value, all I get when I enter anything in this field is a run time error. How can I get this to wotk properly.
And, for a bonus point
, if that code above were for a normal text variable, how would I modify it to incorporate the 'like' operator. Again, all my attempts seem to result in run time errors.
Dim strFilter As String
strFilter = "[ExpiryDate] = '" & Me.srcExpDate & "'"
DoCmd.ApplyFilter , strFilter
The problem is that because the table holds a date variable for this value, all I get when I enter anything in this field is a run time error. How can I get this to wotk properly.
And, for a bonus point
