I try to search some records in an Access database using my VB.net program. I use a "like" keyword with wildcard. For example, the records in Field1 in table TEST are:
aaa
abc
When I use
"Select [Field1] from TEST where [Field1] like '*b*'"
to search the 2nd record "abc", it gives me 0 search result. Using the same statement with wildcard is fine in Access and in old VB versions, but not in VB.net.
Does any one have idea about this?
aaa
abc
When I use
"Select [Field1] from TEST where [Field1] like '*b*'"
to search the 2nd record "abc", it gives me 0 search result. Using the same statement with wildcard is fine in Access and in old VB versions, but not in VB.net.
Does any one have idea about this?