我确实郁闷了,找不到哪点错了
private void Page_Load(object sender, System.EventArgs e){
OleDbConnection objcon=new OleDbConnection();
string sqlstring="Provider=Microsoft.Jet.OleDb.4.0;data source="+Server.MapPath("案例表.mdb");
objcon.ConnectionString=sqlstring;
string sqlstring1="SELECT * From 待审批案件 where 是否补全<>'是'";
objcon.Open();
OleDbCommand objcom=new OleDbCommand(sqlstring1,objcon);
DataGrid1.DataSource=objcom.ExecuteReader();
DataGrid1.DataBind();
objcon.Close();
}
这是Page_Load事件,开头也加上了using System.Data.OleDb;