You need to use the wildcard % so the SQL would be
... WHERE name LIKE 'Nigel%'
That will pick up anything starting with Nigel.
... WHERE name LIKE '%Nigel%'
will pick up the row if Nigel is anywhere in the name field.
Hope this helps
Derek.
Quote:
> Hi,
> I am trying to throw a SQL select command at a jet & SQL server database. I
> am trying to use a like clause to find records containing some of the info
> in a string I pass. I cannot seem to find a where clause that will do this.
> Where name LIKE 'Nigel' return nothing even if " Nigel1, Nigel 2, Nigel
> Williams" is in the requested table.
> Does anyone know the solution here, MSDN does not!
> Regards,
> Nigel Williams.