Click here to Skip to main content
15,911,531 members

Comments by Member 11160992 (Top 9 by date)

Member 11160992 26-Mar-15 3:25am View    
A million thanks to Original Griff, i didn't even think about reserved word. Thanks again sir.
Member 11160992 26-Mar-15 3:21am View    
Nope, checked everything, but exhausted however the same syntax for updating password is working fine. Below is the syntax

//int number = int.Parse(comboBox1.Text);
OleDbConnection oleDbConnection = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=users.mdb;Persist Security Info=False");
OleDbCommand update = new OleDbCommand("UPDATE users SET pass = '" + textBox36.Text + "' where code = 1", oleDbConnection);
oleDbConnection.Open();
update.ExecuteNonQuery();
oleDbConnection.Close();
Member 11160992 26-Mar-15 3:19am View    
Deleted
Nope, checked everything, but exhausted however the same syntax for updating password is working fine. Below is the syntax

//int number = int.Parse(comboBox1.Text);
OleDbConnection oleDbConnection = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=users.mdb;Persist Security Info=False");
//OleDbCommand update = new OleDbCommand("UPDATE user_details SET first_name,last_name,course_name,DOJ,father_name,reg_fees='" + textBox1.Text + "','" + textBox4.Text + "','" + textBox8.Text + "','" + textBox7.Text + "','" + textBox2.Text + "','" + textBox3.Text + "' where code = " + number + "", oleDbConnection);
OleDbCommand update = new OleDbCommand("UPDATE users SET pass = '" + textBox36.Text + "' where code = 1", oleDbConnection);
oleDbConnection.Open();
update.ExecuteNonQuery();
oleDbConnection.Close();

MessageBox.Show("Updated the password Successfully", "Update Password", MessageBoxButtons.OK, MessageBoxIcon.Information);
Member 11160992 26-Mar-15 2:58am View    
Hi, thanks for reply. No special characters are there. I am passing as simple as abc
Member 11160992 14-Mar-15 5:31am View    
this.listbox1.ColumnCount=3
I can find "coulmn width" property but cannot find "Column count" property. When I am trying to add it programmatically, its giving me error.