guys,
this question must be so simple casue i cant find the solution anywhere..basically, i have a textbox that after a user enters a keyword and presses the submit button, it display all records matching the keyword.. the problem is i cant get it to work when a word is entered into the textbox.. attached is my code, i wil appreciate any help

Sub Button_Click(ByVal s As Object, ByVal e As EventArgs)
Dim conbooks As OleDbConnection
Dim cmdselect As OleDbCommand
conbooks = new OleDbConnection ( "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA Source=E:\accounts\knaya\logs.mdb")
cmdselect = new OleDbCommand ("Select booktitle, author, price From online Where author LIKE (textbox1.text)", conbooks)
conbooks.Open()
dgrdTitles.Datasource = cmdselect.ExecuteReader()
dgrdTitles.DataBind()
conbooks.Close()
dgrdTitles.visible = true
this question must be so simple casue i cant find the solution anywhere..basically, i have a textbox that after a user enters a keyword and presses the submit button, it display all records matching the keyword.. the problem is i cant get it to work when a word is entered into the textbox.. attached is my code, i wil appreciate any help
Sub Button_Click(ByVal s As Object, ByVal e As EventArgs)
Dim conbooks As OleDbConnection
Dim cmdselect As OleDbCommand
conbooks = new OleDbConnection ( "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA Source=E:\accounts\knaya\logs.mdb")
cmdselect = new OleDbCommand ("Select booktitle, author, price From online Where author LIKE (textbox1.text)", conbooks)
conbooks.Open()
dgrdTitles.Datasource = cmdselect.ExecuteReader()
dgrdTitles.DataBind()
conbooks.Close()
dgrdTitles.visible = true