<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1170" name=GENERATOR></HEAD>
<BODY>
<DIV> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> ACTEBS
[mailto:actebs@actebs.com.au] <BR><B>Sent:</B> Thursday, June 05, 2003 6: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>