Hi,
Any help with this will be greatly appreciated. I am creating an issue tracking with issues and resolutions as the fields. "SqlException was unhandled - An expression of non-boolean type specified in a context where a condition is expected, near ','." is the error message. The coding I used is:
Dim text As String
text = txtSearch.Text
Dim ad As String = "Select * from Iss_Res where Issue, Resolution LIKE" & text
Dim cn As New SqlConnection(ConStr)
Dim cn2 As SqlCommand = New SqlCommand(ad, cn)
cn.Open()
Dim sqlReader As SqlDataReader = cn2.ExecuteReader()
ds = New DataSet
dv = New DataView
Thanks,
liamcan
Any help with this will be greatly appreciated. I am creating an issue tracking with issues and resolutions as the fields. "SqlException was unhandled - An expression of non-boolean type specified in a context where a condition is expected, near ','." is the error message. The coding I used is:
Dim text As String
text = txtSearch.Text
Dim ad As String = "Select * from Iss_Res where Issue, Resolution LIKE" & text
Dim cn As New SqlConnection(ConStr)
Dim cn2 As SqlCommand = New SqlCommand(ad, cn)
cn.Open()
Dim sqlReader As SqlDataReader = cn2.ExecuteReader()
ds = New DataSet
dv = New DataView
Thanks,
liamcan