search using wildcard

ekses90

New member
Local time
Today, 22:05
Joined
Jan 24, 2011
Messages
5
i want to search something like yy in this xxxx/yy/xxxx.
so i imagine the sql using wildcard is like below.
SELECT * FROM place WHERE id LIKE '_ _ _ _ _ y y _ _ _ _ _';

but i want to make "y y" is a keyword that i key in.
can anyone tell me how to do that?
 
In your query criteria use;
Code:
Like "*" & "Y Y" & "*"
Now if you want "Y Y" to be keyed in from a form field you can use;
Code:
Like "*" & Froms!YourFormName!YourFieldName & "*"
 
ekses90
I assume that you spotted John's typo Froms! should be Forms! he probably was testing that you were awake. :D

Brian
 
ekses90
I assume that you spotted John's typo Froms! should be Forms! he probably was testing that you were awake. :D

Brian

Ah yes, spot the obvious mistake ;) Don't you just hate those little fingergraphical errors, they can keep you busy for hours trying to spot them :(
 

Users who are viewing this thread

Back
Top Bottom