View Full Version : query to search records having some chars common


ajaymansata
02-26-2002, 09:24 PM
I am taking the name to search from a form in a field called name.
I am firing a query
select * from table where lastname like
"[forms]![formname]![name]*"
but still the query does not give me the desired result.
could anyone please suggest me

RV
02-26-2002, 11:36 PM
Try this:

select *
from table
where lastname like Forms!formname!name & "*";

P.S. don't use name for your textbox as it is a reserved word in Access.