OleDbCommand saveCmd = new OleDbCommand("INSERT INTO rapor (Proje_Adi, Proje_Tanimi, Proje_Sorumlusu, Kim_Verdi, Toplam_Sure, Sure_AsildiMi, Asilma_Sebepleri, Notlar, Baslangic_Tarihi, Bitis_Tarihi) VALUES ('" + adbox.Text + "','" + tanimbox.Text + "','" + comboBox1.Text + "','" + kimbox.Text + "','" + surebox.Text + "','" + checkBox1.Text + "','" + sebepbox.Text + "','" + notbox.Text + "','" + dateTimePicker1.Value + "','" + dateTimePicker2.Value + "')", raporCon);
raporCon.Open();
int rowSay = saveCmd.ExecuteNonQuery();
if (rowSay == 1)
MessageBox.Show("...", MessageBoxButtons.OK, MessageBoxIcon.Information);
else
MessageBox.Show("...", "Hata!", MessageBoxButtons.OK, MessageBoxIcon.Error);
raporCon.Close();
//refreshDB();
}
catch (Exception ex)
{
MessageBox.Show("...", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
What is wrong with my codes, it doesn't load it in my access db. :/