السلام عليكم
عندي textbox يتم ادخال القيمة فيه
و عندي command لأجراء update الكود فيه هو كما يلي
Private Sub Button3_Click_2(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Dim ConnStr As New SqlClient.SqlConnection ConnStr.ConnectionString = "server=(local);database=pc;trusted_connection=yes" Dim Sql As String Dim count As Integer = 20 Sql = "update joker set counters= '" & count & "'where name = " & txtsearch.Text & "" Dim adp2 As New SqlClient.SqlCommand(Sql, ConnStr) adp2.Connection.Open() adp2.ExecuteNonQuery() adp2.Connection.Close() End Sub
لكن لا تتم عملية update و يظهر خطأ
ارجو المساعدة بأسرع وقت ممكن للضرورة :unsure: