Simple enough, I can\'t figure out how to add (that\'s +) an integer from a textbox to the integer in the SQL Field.
So for example, the SQL Field may have \'10\' in it
You have to use the correct sql:
Dim sql = "UPDATE PersonsA SET U_G_Studio=U_G_Studio + @ugpoints WHERE Members_ID=@recevierID"
Also use the correct type with AddWithValue
:
Using cmd = New SqlCommand(sql, con)
' use the using-statement to dispose everything that implements IDisposable, so also the connection '
cmd.Parameters.AddWithValue("@ugpoints", Int32.Parse(tranamount.Text))
' .... '
End Using