在FILL到dataset之前,先将路径和记录数写到窗口得LABEL中。
System.Data.OleDb.OleDbCommand mycmd =new System.Data.OleDb.OleDbCommand();
mycmd.CommandText="select count(*) as num from jieguo";
mycmd.Connection=this.oleDbConnection1;
oleDbConnection1.Open();
int count = (int) mycmd.ExecuteScalar();  //记录数
oleDbConnection1.Close();