Bonsoir,


Quelqu'un de charitable pourrait m'expliquer cette erreur.
Et voir ce qui cloche dans mon code.

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
 
   DateTime date1 = CalenSortie.Value;
                    DateTime heure1 = dtpHeureSortie.Value;
                    String vDateHeure1 = date1.ToShortDateString() + " " + heure1.ToShortTimeString();
                    //MessageBox.Show(vDateHeure1);
 
                    OleDbCommand cmdUpdateValSor = new OleDbCommand();
                    cmdUpdateValSor.Connection = cnx;
                    cmdUpdateValSor.CommandText = @" update interv set sortie = '" + vDateHeure1 + "' where nointerv = '" + txtNoInterv.Text + "'";
                    cmdUpdateValSor.ExecuteNonQuery();
                    cnx.Close();
Merci