السلام عليكم ورحة الله وبركاته
هناك خطأ في هذا الكود رجاء المساعدة من اهل الخبرة
string Jep_connetionString13 = null;
OleDbConnection Jep_cnn13;
OleDbCommand Jep_cmd13;
string Jep_sql13 = null;
Jep_connetionString13 = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|/jepdata.mdb;";
Jep_sql13 = " Select Count(*) from problemDATA where(customerID='" + textBox3.Text + "',customerPRODUCTTYPE='" + textBox5.Text + "',customerMODEL='" + textBox6.Text + "')";
Jep_cnn13 = new OleDbConnection(Jep_connetionString13);
try
{
Jep_cnn13.Open();
Jep_cmd13 = new OleDbCommand(Jep_sql13, Jep_cnn13);
Int32 count = Convert.ToInt32(Jep_cmd13.ExecuteScalar());
Jep_cmd13.Dispose();
Jep_cnn13.Close();
label14.ForeColor = Color.Green;
label14.Text = ("" + count + "");
return;
}
catch (Exception ex)
{
label14.Text = ("خطأ !");
}