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


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

主题:筛选空值失效

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


加好友 发短信
等级:小狐 帖子:312 积分:2519 威望:0 精华:0 注册:2019/7/19 13:09:00
筛选空值失效  发帖心情 Post By:2020/4/14 22:17:00 [显示全部帖子]

筛选空值失效,怎么都不能去掉已付的
图片点击可在新窗口打开查看此主题相关图片如下:1.jpg
图片点击可在新窗口打开查看

Dim hh As WinForm.DateTimePicker = Forms("员工表").Controls("DateTimePicker1")
Dim ii As WinForm.DateTimePicker = Forms("员工表").Controls("DateTimePicker2")

Dim ll As WinForm.CheckBox = Forms("员工表").Controls("CheckBox1")
Dim lk As WinForm.CheckBox = Forms("员工表").Controls("CheckBox2")




Dim Filter As String
Filter = "[_Identify] is not null"
If hh.value IsNot Nothing AndAlso ii.value IsNot 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 " & "[已付] = 1"
End If

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

 回到顶部