| 发表于:2007-07-20 11:49:11 楼主 |
csql = "select max(xxa),min(xxb),sum(convert(int,xxc)),avg(convert(int,xxd)) " & _ " from tab where yymmddhh between ' " & cstart & " ' and ' " & cend & " ' " rs.open csql, cn, adopendynamic, adlockoptimistic if rs.recordcount > 0 and not isnull(rs.fields(0).value) then ===================================== 数据库中确实存在资料,可是检查返回的值却提示rs.fields(0).value=null,这是怎么回事啊,是不是同一条select语句中不能同时包含max/min/sum/avg函数呀,各位帮忙啊,谢谢! |
|
|
|
|