以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- [求助] (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=16360) |
-- 作者:tungwun -- 发布时间:2012/2/10 21:21:00 -- [求助] Dim Filter As String With e.Form.Controls("cmbProduct") If .Value IsNot Nothing Then Filter = "車牌 = \'" & .Value & "\'" End If End With With e.Form.Controls("cmbCustomer") If .Value IsNot Nothing Then If Filter > "" Then Filter = Filter & " And " End If Filter = Filter & "打理人= \'" & .Value & "\'" End If End With With e.Form.Controls("cmbEmployee") If .Value IsNot Nothing Then If Filter >"" Then Filter = Filter & " And " End If Filter = Filter & "編碼= \'" & .Value & "\'" End If End With If Filter > "" Then Tables("車輛打理").Filter = filter & " And 結束日期時間Is Null" End If 请问已上代码在查询筛选出没有输入结束日期的资料 如何在当中加入当月有结束日期时间查询? 筛选出全表没有输入结束日期资料及加入当月有结束日期时间资料 |
-- 作者:czy -- 发布时间:2012/2/10 21:32:00 --
Tables("車輛打理").Filter = filter & " And 結束日期時間 Is Not Null" |
-- 作者:tungwun -- 发布时间:2012/2/10 23:50:00 -- 如何在當中加入當月有結束日期時間查詢? 如何在當中加入當月有結束日期時間查詢? |