Paano po search sql with LIKE gamit yung naka parameter?
ganito po yung gamit kong code kaso hindi gumagana:
sql_Search = "SELECT tblinfo.emp_no, tblinfo.lname, tblinfo.fname, tblinfo.bday, tblinfo.gender, tblinfo.status, tblemp.emp_status, tblemp.emp_position, tblemp.emp_department FROM tblinfo LEFT JOIN tblemp ON tblinfo.emp_no = tblemp.emp_no WHERE tblinfo.fname LIKE @SearchAs "
oledcommand.Parameters.AddWithValue("@SearchAs", OleDbType.VarWChar).Value = txtSearch.Text
Thanks sa mga tutulong.
ganito po yung gamit kong code kaso hindi gumagana:
sql_Search = "SELECT tblinfo.emp_no, tblinfo.lname, tblinfo.fname, tblinfo.bday, tblinfo.gender, tblinfo.status, tblemp.emp_status, tblemp.emp_position, tblemp.emp_department FROM tblinfo LEFT JOIN tblemp ON tblinfo.emp_no = tblemp.emp_no WHERE tblinfo.fname LIKE @SearchAs "
oledcommand.Parameters.AddWithValue("@SearchAs", OleDbType.VarWChar).Value = txtSearch.Text
Thanks sa mga tutulong.