Thanks thats great
"Jan Hyde" <StellaDrinker.RemoveThis@REMOVE.ME.uboot.com> wrote in message
news:bl59115d0h5dn5dl4v029p6omabinmeg66@4ax.com...
> "gavin" <##gavin@djapex.f9.co.uk##NOSPAM>'s wild thoughts
> were released on Thu, 17 Feb 2005 12:59:51 GMT bearing the
> following fruit:
>
>>Hi Guys,
>>
>>I am trying to get a selection of fields from a DB.
>>
>>I can select specific records using
>>
>>sql = "SELECT * FROM cds WHERE Artist = 'bryan'"
>>rs.open sql,cn
>>
>>Not problem. But I want to able to retireve records say starting with BR.
>>SO when I try
>>
>>sql = "SELECT * FROM cds WHERE Artist = 'br*'"
>>rs.open sql,cn
>>
>>It just skips all files.
>>
>>Please help.
>
> SELECT * FROM cds WHERE Artist MATCHES 'br*'
>
> SELECT * FROM cds WHERE Artist LIKE 'br%'
>
> J
>
>
>>I have a Access back end using Jet.
>>
>>Many Thanks
>>
>>Gavin.
>>
>
>
> Jan Hyde (VB MVP)
>
> --
> A man is incomplete until he is married.
> After that, he is finished.
>
> (Zsa Zsa Gabor)
>
<font color=purple> > [Abolish the TV Licence - <a style='text-decoration: underline;' href="http://www.tvlicensing.biz/]</font" target="_blank">http://www.tvlicensing.biz/]</font</a>>
><!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: SQL Format