Tout d'abord bonjour.
Voilà, j'ai un code (celui en dessous) qui me génère l'erreur "un ou plusieurs paramètres introuvables" :cry::cry:
Si quelqu'un peut m'aider ce sera gentil.
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 string StrCmd ="update users set nom='" + nom.Text + "', login ='" + login.Text + "',pass = '" + pass.Text + "', est_admin="; if(est_admin.Checked) { StrCmd+="oui"; } else { StrCmd+="nom"; } StrCmd += ",dernier_connection ='*****' where nom='" + comboBox1.Text + "'"; OleDbConnection connection = new OleDbConnection(Program.Connection_String); connection.Open(); OleDbCommand cmd = new OleDbCommand(StrCmd,connection); cmd.ExecuteReader(); connection.Close();