Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Wildcard in Query

Status
Not open for further replies.

dt114

Programmer
Dec 10, 2003
4
US
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?
 
Only that you might be better off posting in the vb.net forum (or access).

======================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top