OleDbConnection conn = CreateConnection(DatePath);
string StrSql = " Select * form " + TableName + " where Name = '" + SelectName.Trim() + "'";
OleDbCommand myCommand = new OleDbCommand(StrSql, conn);
OleDbDataReader oldr = myCommand.ExecuteReader(); ;
有问题的,报错了吧:(form 写错了 应该是 from)
string StrSql = " Select * from " + TableName + " where Name = '" + SelectName.Trim() + "'";