Filtering by entry box (1 Viewer)

Lanason

Registered User.
Local time
Today, 23:22
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
 

pbaldy

Wino Moderator
Staff member
Local time
Today, 15:22
Joined
Aug 30, 2003
Messages
36,132
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)
 

Lanason

Registered User.
Local time
Today, 23:22
Joined
Sep 12, 2003
Messages
258
How bizzare - now it seems to be working . .
not quite sure what I changed
 

pbaldy

Wino Moderator
Staff member
Local time
Today, 15:22
Joined
Aug 30, 2003
Messages
36,132
I fixed it remotely... :p
 

Users who are viewing this thread

Top Bottom