adp = New SqlDataAdapter("insert into tbl1 values" & "(" & TextBox1.Text & "," & "'" & TextBox2.Text & "'" & ")", cn) adp1 = New SqlDataAdapter("insert into tbl2 values" & "(" & TextBox1.Text & "," & "'" & TextBox3.Text & "'" & "," & TextBox4.Text & ")", cn) cmd.ExecuteNonQuery() adp.Fill(ds, "tb1") cmd.ExecuteNonQuery() adp1.Fill(ds1, "tb2") MsgBox("Record Inserted....")
INSERT INTO tbl1 (Name,Addess,Phone) Values ('Imdad','India','91')
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)