OleDbConnection conn = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Visa\App_Data\finance.mdb;Persist Security Info=False");
string connstr = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Visa\App_Data\finance.mdb;Persist Security Info=False";
conn.Open();// the error message point here
OleDbCommand cmd = conn.CreateCommand();
cmd.CommandType = CommandType.Text;
cmd.CommandText = "select * from Lancamento where data_recepcao ='" + dtEntrada.Text + "'";
var param1 = new OleDbParameter("@data_recepcao", OleDbType.VarChar);
param1.Value = dtEntrada.Text;
cmd.ExecuteNonQuery();
DataTable dt = new DataTable();
OleDbDataAdapter da = new OleDbDataAdapter(cmd);
da.Fill(dt);
dgvLancamento.DataSource = dt;
conn.Close();// the error message point here