F
Fishing Guy
I encouter a strange problem with the "Like" operator. I try to search with
like match to a name field:
select * from employe where name like '*joh*'
the query results in 0 records. However, I know the table has multiple
records that the name field has the name "John". and I also vary the sql
statement is valid by create a MS Query (query object) use the same sql. the
MS Query result correct results. but when I embed this sql into my code (I
use ado record set, with this connect string:
Provider=Microsoft.Jet.OLEDB.4.0....), and my recordset return 0 rows.
thanks for any one who can help
like match to a name field:
select * from employe where name like '*joh*'
the query results in 0 records. However, I know the table has multiple
records that the name field has the name "John". and I also vary the sql
statement is valid by create a MS Query (query object) use the same sql. the
MS Query result correct results. but when I embed this sql into my code (I
use ado record set, with this connect string:
Provider=Microsoft.Jet.OLEDB.4.0....), and my recordset return 0 rows.
thanks for any one who can help