<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1170" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=860362214-05062003><FONT face=Arial color=#0000ff size=2>Hi
Vlad:</FONT></SPAN></DIV>
<DIV><SPAN class=860362214-05062003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=860362214-05062003><FONT face=Arial color=#0000ff size=2>I have
a little piece of code that is stored with all my applications. When set it
writes a specific result string into memory. If there are some issue
the code can be pasted into a Access query or SQL SP and tested there. It
makes it a lot easier to resolve tricky string problems. I could send it all
offline.</FONT></SPAN></DIV>
<DIV><SPAN class=860362214-05062003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=860362214-05062003><FONT face=Arial color=#0000ff
size=2>HTH</FONT></SPAN></DIV>
<DIV><SPAN class=860362214-05062003><FONT face=Arial color=#0000ff
size=2>Jim</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B>
accessd-bounces@databaseadvisors.com
[mailto:accessd-bounces@databaseadvisors.com]<B>On Behalf Of
</B>ACTEBS<BR><B>Sent:</B> Thursday, June 05, 2003 7:56 AM<BR><B>To:</B>
access group<BR><B>Subject:</B> [AccessD] Like Operator SQL
Syntax<BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=531174814-05062003>Hi
People,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=531174814-05062003></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=531174814-05062003>Can anyone tell me
what wrong with the following syntax:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=531174814-05062003></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=531174814-05062003>strSQL = "SELECT
tblCustomers.CustomerID, "
_<BR> &
"[tblCustomers]![CustomerNumber] & '-' & [tblCustomers]![CustomerSite]
" _<BR>
& "AS CustCode, tblCustomers.CustomerName, tblCustomers.Address1 & ' '
& "
_<BR> &
"tblCustomers.Address2 & ' ' & tblCustomers.Address3 & ' ' & "
_<BR> &
"tblCustomers.Postcode AS Address, tblCustomers.DepotID FROM tblCustomers "
_<BR> &
"WHERE (((tblCustomers.CustomerName) Like % + "
_<BR> &
strInput & " + %)) "
_<BR> &
"ORDER BY tblCustomers.CustomerName;"</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=531174814-05062003></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=531174814-05062003>I am creating an
ADO recordset and obviously ADO use % as the wild card and not * so I am not
sure where the issue currently is...</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=531174814-05062003></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=531174814-05062003>Thanks</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=531174814-05062003>Vlad</SPAN></FONT></DIV>
<DIV> </DIV></BLOCKQUOTE></BODY></HTML>