المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : error in code for data adapter



C# Programming
08-25-2009, 09:40 AM
System.Data.OleDb.OleDbException: Data type mismatch in criteria expression.

Source Error:


Line 84: string cmd2 = "select Description from description_details where Group_id="+str_group +"";
Line 85: da1.SelectCommand = new OleDbCommand(cmd2, con1);
Line 86: da1.Fill(ds1,"group");
Line 87: DataTable dt1 = ds1.Tables["group"];
Line 88: descrptndpdnlt.DataSource = dt1;

Why is it showing error in line 86???