When I run this code, I get table columns without data.
Date is designed as Short text in Ms Access database.
connection.Open();
OleDbCommand cmd = new OleDbCommand();
try
{
    String date = dateTimePicker1.Value.ToString();
    cmd.Connection = connection;
    String query = "SELECT * from Events where DOB ='"+date+"'";
    cmd.CommandText = query;
    Console.WriteLine("" + query);
  
    OleDbDataAdapter oa = new OleDbDataAdapter(cmd);
    DataTable dt = new DataTable();
    oa.Fill(dt);
    dataGridView1.DataSource = dt;
}
How to solve that?
 
    