系统提供了EXCEL的ODBC驱动,可以用SQL实现,very easy! just like
select *** from *table where ...
while not eof(rs)
  ...
wendselect count(*) from *table where ...