|
-
March 7th, 2003, 08:19 AM
#1
Using Like in SQL Statement
Hi,
I am trying to use the like statement in an SQL statement but I am unable to!
This works without the "Like" command:
da.SelectCommand = New OleDbCommand("Select * from Customers Where Name= '" & Me.txtSearch.Text & "'", ocon)
This is what I am trying to get to work:
da.SelectCommand = New OleDbCommand("Select * from Customers Where Name= Like '" & Me.txtSearch.Text & "*" & "'", ocon)
Any Idea's
Darrell....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|