422,751 Members | 2,100 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 422,751 IT Pros & Developers. It's quick & easy.

C# Access Database Connection grid error

P: 1
i found a blog but i have a problem. This code line makes me cancer i hope someone can help me. Code line doesnt work, or i didnt work.

Expand|Select|Wrap|Line Numbers
  1. griddoldur();
  2. }
  3. private void button1_Click(object sender, EventArgs e)// EKLE BUTONU
  4. {
  5. cmd = new OleDbCommand();
  6. con.Open();
  7. cmd.Connection = con;
  8. cmd.CommandText = “insert into ogrenci (ogr_no,ogr_ad,ogr_soyad,ogr_tel) values (‘” + tbno.Text + “‘,'” + tbad.Text + “‘,'” + tbsoyad.Text + “‘,'” + tbtel.Text + “‘)”;
if someone wants full code line; http://opensourceprojects.org/c-acce...e-application/
3 Weeks Ago #1
Share this Question
Share on Google+
1 Reply


RedSon
Expert 5K+
P: 5,001
What is the error that you are getting?
3 Weeks Ago #2

Post your reply

Sign in to post your reply or Sign up for a free account.