OR and LIKE when searching with a keyword

jarvjarv

New member
Local time
Today, 17:50
Joined
Feb 17, 2006
Messages
8
Hello Access Fans!

I've got this query whereby i would like to find the address information about people by a keyword search on either their name or their quickname which currently looks like this:

SELECT Tbl_Addresses.*
FROM Tbl_Addresses
WHERE ((((Tbl_Addresses.Name)OR(Tbl_Addresses.Quickname)) Like "*" & [Enter a Name] & "*"));


However this doesn't return any results? it works if i search for just the Tbl_addresses.Name or the Tbl_Addresses.Quickname but not for both? does anyone know how to fix this problem?

Thank you

Jarv
 
That did the trick!

Thanks, i've changed the Name as well so hopefully it should go smoothly from now on!!!
:D
 

Users who are viewing this thread

Back
Top Bottom