I am trying to filter a bound, continuous form on load so it displays only the records with a specific field containing a string somewhere in the field value. This is what I have:
strFilter is a string.
I get a syntax error.
Any ideas?
Thanks
mafhobb
Code:
If Me.OpenArgs <> "" Then
strFilter = Me.OpenArgs
Me.Filter = "[AutoEmailCode] like & 'strFilter'"
Me.FilterOn = True
End If
strFilter is a string.
I get a syntax error.
Any ideas?
Thanks
mafhobb