- Outils de développement utilisé: Visuel studion 2003
bonjour tt le monde:
ben j'ai un bleme dans ce code meme si le meme code sur un autre table marche trés bien
"MsgBox(commande.ExecuteNonQuery())" il me donne com resultat 0
voila le code:
Try
Dim commande As MySqlCommand = myconn.CreateCommand
myconn.Open()
commande.CommandText = "update etat set code_mat=' " & C_code.Text & " ',systeme= '" & txtsysteme.Text & "',licence_systeme = '" & Checklicensys.Checked & "', type_licence_sys = '" & txt1.Text & "', office = '" & txtoffice.Text & "',licence_office = '" & Checklicenoffi.Checked & "', type_licence_office = '" & txt2.Text & "',antivir = '" & txtantivir.Text & "',licence_antivir = '" & Checklicenantivir.Checked & "',type_licence_antivir = '" & txt3.Text & "', autre = '" & txtautre.Text & "',licence_autre = '" & Checklicenautre.Checked & "',type_licence_autre = '" & txt4.Text & "',type_maj = '" & txtmaj.Text & "',date_maj = '" & txtdatemaj.Text & "',imprimante = '" & txtimprim.Text & "',scanner = '" & txtscanner.Text & "',optimisation = '" & txtopptimisation.Text & "' where code_mat= '" & C_code.Text & "'"
MsgBox(commande.ExecuteNonQuery())
Catch ex As Exception
MsgBox(ex.Message)
myconn.Close()
EndTry
SVP aidez moi![]()
Partager