Filtering by entry box

Lanason

Registered User.
Local time
Today, 15:16
Joined
Sep 12, 2003
Messages
258
Hmmm looked at various posts in here but can't get me code to work

I an trying to filter records based on entered text in a box on the header
so if the Doc No or Doc title contain the entered text it filters by it . . where am I going wrong??:banghead:

Code:
    Me.Filter = "[DocNo] like " & Chr(34) & "*" & Me.search & "*" & Chr(34) & " " & "OR [DocTitle] like " & Chr(34) & "*" & Me.search & "*" & Chr(34)

    Me.FilterOn = True
 
What's happening/not happening? What does the finished string look like?

Debug.Print "[DocNo] like " & Chr(34) & "*" & Me.search & "*" & Chr(34) & " " & "OR [DocTitle] like " & Chr(34) & "*" & Me.search & "*" & Chr(34)
 
How bizzare - now it seems to be working . .
not quite sure what I changed
 
I fixed it remotely... :p
 

Users who are viewing this thread

Back
Top Bottom