出错图:
出错代码:
private
void
SaveData()
{
OleDbConnection thisConnection = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\Manio\My Documents\PrintManager\program\PrintManageV1\DataBase\PrintDB.mdb");
thisConnection.Open();
OleDbDataAdapter thisAdapter = new OleDbDataAdapter("SELECT * FROM Exception ", thisConnection);
MessageBox.Show("SELECT * FROM Exception WHERE D_StuNum = " + this.fTxtStuNum.Text);
OleDbCommandBuilder thisBuilder = new OleDbCommandBuilder(thisAdapter);
DataSet thisDataSet2 = new DataSet();
thisAdapter.Fill(thisDataSet2, "Exception");
MessageBox.Show("OK");
}
{
OleDbConnection thisConnection = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\Manio\My Documents\PrintManager\program\PrintManageV1\DataBase\PrintDB.mdb");
thisConnection.Open();
OleDbDataAdapter thisAdapter = new OleDbDataAdapter("SELECT * FROM Exception ", thisConnection);
MessageBox.Show("SELECT * FROM Exception WHERE D_StuNum = " + this.fTxtStuNum.Text);
OleDbCommandBuilder thisBuilder = new OleDbCommandBuilder(thisAdapter);
DataSet thisDataSet2 = new DataSet();
thisAdapter.Fill(thisDataSet2, "Exception");
MessageBox.Show("OK");
}