where do i put the *
what i wanted was when i put c in the textbox it would retrieve all the data that start with c..Code:adodcBranchGrid.RecordSource = "SELECT * FROM branch_tbl WHERE branch_name LIKE'" & txtBranchFind.Text & "'"
Printable View
where do i put the *
what i wanted was when i put c in the textbox it would retrieve all the data that start with c..Code:adodcBranchGrid.RecordSource = "SELECT * FROM branch_tbl WHERE branch_name LIKE'" & txtBranchFind.Text & "'"
Try searching http://msdn.microsoft.com/en-us/libr...2(SQL.80).aspx
thank you
the code looks like this now
Code:adodcBranchGrid.RecordSource = "SELECT * FROM branch_tbl WHERE branch_name LIKE'%" & txtBranchFind.Text & "%'"