Dim cn As New SqlConnection("Data Source=.\INSTANCE;initial catalog=stamp;user=sa;password=gariahat") Dim da As New SqlDataAdapter Dim cmd As New SqlCommand Dim ds As New DataSet 'Dim dr As SqlDataReader cmd.Connection = cn cn.Open() cmd.CommandText = "Update product set " & "product_id = '" & TextBox1.Text & "', " & "pname='" & RichTextBox1.Text & " '," & "description='" & RichTextBox2.Text & " '," & "amt='" & TextBox2.Text & "' " & "Where broker_id = '" & ComboBox1.SelectedItem & "'" cmd.ExecuteNonQuery() MsgBox("Data successfully added", MsgBoxStyle.Information) TextBox1.Text = "" TextBox2.Text = "" RichTextBox1.Text = "" RichTextBox2.Text = ""
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)