Now, Before you kill me because of my horrid code hear me out. I'm pretty bad with coding in general so I use bad ways to do things. Basically I know why it's duplicating but, I can't find a way around it basically I'm inserting data into a database that goes in to a collum. It was working fine until I realized that the program overwrites all of the current text in the collum. So I said why not make it just insert the current text a'long with the new text that was added here is when all hell broke loses. I noticed that it started duplicating into the richtextbox.
This submits it to the database. The BOLD red text is the part the submits it to the database. My question is how can I insert stuff into a collum correctly without overwriting the existing text.
Code:
Private Sub InfluenceButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles InfluenceButton1.Click
strsql = "Update tbl_sample set Rank = '" & InfluenceComboBox2.Text & "', Status = '" & InfluenceComboBox1.Text & "', Pp = '" & InfluenceComboBox5.Text & "', Comments = '" & sourcehax.Text + Form1.sourcehax.Text & "', Gender = '" & InfluenceComboBox4.Text & "' where ID = '" & lblid.Text & "'"
Dim da As New MySqlDataAdapter(strsql, CONNECTION)
da.Fill(ds)
Me.Hide()
CONNECTION.Close()
Form1.admin()
Form1.list()
End Sub