Hello friend i need help i have two column (Brand Model) i need when i find the data from my table through text boxes then show this data already available in the following row
Dim cmd As New SqlCommand
cmd.Connection = cn
cmd.CommandText = "SELECT * FROM Table_3 WHERE Brand,Model='" & TextBox5.Text & " and" & TextBox6.Text & "'"
Dim adapter As New SqlDataAdapter(cmd)
Dim table As New DataTable()
adapter.Fill(table)
If table.Rows.Count() > 0 Then
' TextBox_1.Text = table.Rows(0)(0).ToString()
MessageBox.Show("this data already available")
Else
MessageBox.Show("not available")
End If