Click here to Skip to main content
15,890,579 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
C#
private void ekle_Click(object sender, EventArgs e)
        {

            string kaynak = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=gunluk2.accdb"; ;
            OleDbConnection baglanti = new OleDbConnection(kaynak);
            baglanti.Open();//error is here
            string sorgu = string.Format("INSERT INTO gunluk(Id,tarih,saat,yapilan) VALUES ('{0}','{1}',{2},'{3}')", Id, tarih, saat, yapilan);

            OleDbCommand komut = new OleDbCommand(sorgu, baglanti);
            komut.ExecuteNonQuery();
            baglanti.Close();

}


Can you help me ?
Posted
Updated 22-May-10 22:16pm
v2

1 solution

The message is clear.
Does this[^] help?

Cheers
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900