I have an access database table with 3 columns (ID,Person,Formation_Date). The difficulties I face are to retrieve from the table the person where the difference between the Formation_Date and the Date of Today is greater than 90 (Formation_Date-Today >90). And paste them in a DataGridView.
I don't know how to make such query
this is what i have done for now!
con.Open();
OleDbCommand cmd = new OleDbCommand();
cmd.Connection = con;
string query = " select * from StatBD ";
cmd.CommandText = query;
DataTable dt = new DataTable();
OleDbDataAdapter adapter = new OleDbDataAdapter(cmd);
adapter.Fill(dt);
dataGridView1.DataSource = dt;
con.Close();