Ce code ne fonctionne pas et la requete ne s'execute pas !
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9 Try strSQL = "UPDATE Marque M SET M.Lib_Marque = '" & Me.ComboMarques.Text.ToString & "' WHERE M.ID_Marque = '" & idM & "' " Dim maComm2 As New SqlClient.SqlCommand(strSQL, My.Forms.Form1.maConn) maComm2.CommandType = CommandType.Text maComm2.ExecuteNonQuery() Catch ex As Exception Me.lErreur.Text = ex.ToString End Try
Savez vous pourquoi ? (Exception levée : Incorrect syntax near M.)
Partager