Click to See Complete Forum and Search --> : sql and keyword search
Negative0
Jun 14th, 2000, 10:11 PM
In your Like call you need to use wildcards.
Such as "txt1 like '*" & textbox & "*'"
csingeu
Jun 15th, 2000, 03:55 PM
Actually I'm also facing this problem...
and but my problem is ...
i already included the wildcards
SQLString = "SELECT * FROM Main WHERE Name LIKE ('*John*')"
but it still cannot work with ado dc ..
btw, I using access2000 and the ado dc is bound to a datagrid.
Richyrich
Jun 15th, 2000, 04:42 PM
Not an expert with ADO however I do beleive that the wildcard character is a '%' not a '*' .
JHausmann
Jun 15th, 2000, 11:30 PM
The wildcard depends on if the the DBMS is ANSI standard...
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.