C# Access Database Connection grid error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mondgott
    New Member
    • May 2018
    • 1

    C# Access Database Connection grid error

    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.

    Code:
    griddoldur();
    }
    private void button1_Click(object sender, EventArgs e)// EKLE BUTONU
    {
    cmd = new OleDbCommand();
    con.Open();
    cmd.Connection = con;
    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/
  • RedSon
    Recognized Expert Expert
    • Jan 2007
    • 4980

    #2
    What is the error that you are getting?

    Comment

    Working...