Yes you can.
strFirstName=Request.Form("txtFirstName")
strLastName=Request.Form("txtLastName")
strSQL=" Select * from Employee_Names where Employee_Names.FIRST_NAME LIKE
'" & strFirstName &"' OR Employee_Names.LAST_NAME='"& strLastName &"'"
This si the code for my query.
> can i see some of your code?
>
[quoted text clipped - 30 lines]
> >> > Thanks
> >> > SAN
James - 26 May 2005 00:38 GMT
strSQL=" Select * from Employee_Names where Employee_Names.FIRST_NAME LIKE
'" & strFirstName &"*' OR Employee_Names.LAST_NAME='"& strLastName &"*'"
use *'s like i did in the above suggestion.
> Yes you can.
>
[quoted text clipped - 43 lines]
>> >> > Thanks
>> >> > SAN
John Spencer (MVP) - 26 May 2005 01:42 GMT
Perhaps
strSQL=" Select * from Employee_Names where Employee_Names.FIRST_NAME LIKE
'*" & strFirstName &"*' OR Employee_Names.LAST_NAME='"& strLastName &"'"
OR strSQL=" Select * from Employee_Names where Employee_Names.FIRST_NAME LIKE
'%" & strFirstName &"%' OR Employee_Names.LAST_NAME='"& strLastName &"'"
> Yes you can.
>
[quoted text clipped - 40 lines]
> > >> > Thanks
> > >> > SAN