OleDbDataAdapter thisadapter=new OleDbDataAdapter("select * from write",PubVariable.cndbf);
OleDbCommandBuilder thisbuilder=new OleDbCommandBuilder(thisadapter);
DataSet thisdataset=new DataSet();
thisadapter.Fill(thisdataset,"write");---这里会出错
DataRow thisRow = thisdataset.Tables["write"].NewRow();//新增一条记录
thisRow["pcw_id"]=thisreader["c_Code"];
thisRow["pcw_data"] =thisreader["c_SourceData"];
thisRow["pcw_type"]=0;
thisRow["pcw_dot"]=thisreader["b_Dot"];
thisRow["pcw_name"]=thisreader["c_DataName"];
thisdataset.Tables["write"].Rows.Add(thisRow); //添加记录
thisadapter.Update(thisdataset,"write"); //更新数据集错误提示如下:An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in system.data.dll