Foxtable(狐表)用户栏目专家坐堂 → 筛选空值失效


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

主题:筛选空值失效

帅哥,在线噢!
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:110795 积分:563913 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2020/4/14 22:31:00 [显示全部帖子]

Dim Filter As String
Filter = "[_Identify] is not null"
If hh.value <> Nothing AndAlso ii.value <> Nothing
    vars("startdate") = hh.value
    vars("enddate") = ii.value
    Filter = Filter & " and " & "[交工日期] >= '" & hh.Value & "' and [交工日期] <= '" & ii.Value & "'"
End If
If ll.Checked = True AndAlso lk.Checked = False Then
    Filter = Filter & " and " & "[已付] = true"
End If

If lk.Checked = True AndAlso ll.Checked = False Then
    Filter = Filter & " and " & "([已付] is null or [已付] = false)"
End If
Tables("员工表.工资结算").Filter = Filter


 回到顶部