Hi,i have some error for some help
when i try to run this code below i got this error "Syntax error in UPDATE statement."
at .ExecuteNonQuery() and i try to solve it for an hours but i can't , Anyone please help me !!
and i use System.Data.Oledb ( sorry for my bad english )
Dim sqledit As String
sqledit = "UPDATE Employee" _
& " SET ID_Code='" & TextBox1.Text & "'," _
& "Em_Name='" & TextBox2.Text & "'," _
& "Address='" & TextBox3.Text & "'," _
& "Tel='" & TextBox4.Text & "'," _
& "Position='" & TextBox5.Text & "'" _
& " WHERE ID_Code='" & TextBox1.Text & "'"
With comAdd
.CommandType = CommandType.Text
.CommandText = sqledit
.Connection = Conn
.ExecuteNonQuery()
End With