Rss & SiteMap

Foxtable(狐表) http://www.foxtable.com

新一代数据库软件,完美融合Access、Foxpro、Excel、vb.net之优势,人人都能掌握的快速软件开发工具!
共2 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:[求助]

1楼
tungwun 发表于:2012/2/8 23:14: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
End If

请问如何加入到上面的查询代码中  Tables("車輛打理").Filter = "結束日期時間 Is Null"
[此贴子已经被作者于2012-2-8 23:14:48编辑过]
2楼
czy 发表于:2012/2/8 23:22:00

如果是無條件加入:

If Filter > "" Then

   Tables("車輛打理").Filter = filter & " And 結束日期時間 Is Null"

End If

共2 条记录, 每页显示 10 条, 页签: [1]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .03500 s, 2 queries.