کد من به شکل زیر است
OleDbConnection conection = new OleDbConnection();
conection.ConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=""c:\db1.mdb""";
OleDbCommand cm = new OleDbCommand("Select * from mariz where code=" + textBox1.Text , conection);
conection.Open();
OleDbDataReader dr = cm.ExecuteReader();
string name = dr["name"].ToString();
string famil = dr["family"].ToString();
textBox2.Text =name +" "+ famil;
conection.Close();
اما ارور میده انگار که ستونی به نام name یا family نیست!!!
No data exists for the row/column.