Sadly, that IS correct. Access hath its quirks.
IIRC, Access needs the token string to be surrounded by double quotes, so
perhaps the OP could try rewriting the query as:
$query = 'Select * From Dispatch Where Customer Like "*A*"';
HTH
Doug
--
Remove the blots from my address to reply
"Daniel Tryba" <ne**************@canopus.nl> wrote in message
news:c6**********@news.tue.nl...
Geoff Berrow <bl******@ckdog.co.uk> wrote: $query = " Select * From Dispatch Where Customer Like '*A*' ";
Does anyone out there know the syntax that I should be using for the
Like statement in the Where clause? When I do a normal query, it works
fine....Just using wildcards it does not work....
It works perfectly, you are just to lazy to search for a correct
example:
http://www.google.com/search?q=sql+l...ldcard+example
That's unfair. Access databases use the asterisk as a wild card.
If that is correct, that I appologize to the OP.
--
Daniel Tryba