|
本帖最后由 qjw9004 于 2011-10-28 12:48 编辑
todaynew 发表于 2011-10-27 19:22
SELECT ht_flxz.*, IIf(nz([ysje],0)0,[ysje],DSum("ysje","ht_flxz","flbh like '" & [flbh] & "*' an ...
你好~~~
我查了很多资料才有点明白,ASP不支持NZ这个函数我想能否用isnull来代替呢?
我用isnull来替代,代码如下
SELECT ht_flxz.*, IIf(isnull([ysje]),[ysje],DSum("ysje","ht_flxz","flbh like '" & [flbh] & "*' and len(flbh)=7")) AS Sumysje
FROM ht_flxz
ORDER BY ht_flxz.flbh;
但是存在一点问题
如是二级没有下一级的话就计算不出来,结果如图~~
切望再次得到你的帮助!~~~ |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|