Foxtable(狐表)用户栏目专家坐堂 → 代码问题


  共有2416人关注过本帖树形打印复制链接

主题:代码问题

帅哥哟,离线,有人找我吗?
wangglby
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:小狐 帖子:337 积分:3225 威望:0 精华:0 注册:2020/2/25 23:12:00
代码问题  发帖心情 Post By:2021/9/8 21:24:00 [只看该作者]

Dim id1 As Integer = Tables("表A").Rows(Tables("表A").TopPosition)("_Identify")
    Dim id2 As Integer = Tables("表A").Rows(Tables("表A").BottomPosition)("_Identify")
    If DataTables("表A").Compute("count(物料编码)"," 价格= 0.00 and [_Identify] >= " & id1 & " And [_Identify] <= " & id2 & " ") > 0 


这代码有问题吗 ,明明有符合条件的,就算不出来



 回到顶部
帅哥,在线噢!
有点蓝
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:106550 积分:541915 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2021/9/9 9:56:00 [只看该作者]

调试看看
Dim id1 As Integer = Tables("表A").Rows(Tables("表A").TopPosition)("_Identify")
msgbox(id1)
    Dim id2 As Integer = Tables("表A").Rows(Tables("表A").BottomPosition)("_Identify")
msgbox(id2)
msgbox(DataTables("表A").Compute("count(物料编码)"," 价格= 0.00 "))
msgbox(DataTables("表A").Compute("count(物料编码)"," 价格 is null"))
msgbox(DataTables("表A").Compute("count(物料编码)"," 价格 is null and [_Identify] >= " & id1 & " And [_Identify] <= " & id2))
msgbox(DataTables("表A").Compute("count(物料编码)","[_Identify] >= " & id1 & " And [_Identify] <= " & id2))


 回到顶部