以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  窗口TALBE 筛选  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=47244)

--  作者:asionwong
--  发布时间:2014/3/6 19:44:00
--  窗口TALBE 筛选
窗口打开后,希望tables("窗口1_table1")为空表,不显示数据,怎么做?谢谢
--  作者:lsy
--  发布时间:2014/3/6 20:01:00
--  
tables("窗口1_table1").Filter = "1 = 2"
--  作者:asionwong
--  发布时间:2014/3/6 21:41:00
--  

Dim Filter As String
With e.Form.Controls("datetimepicker1")
    If .Value IsNot Nothing Then
        If Filter >"" Then
            Filter = Filter & " And "
        End If
        Filter = Filter & "出货日期 >= #" & .Value & "#"
    End If
End With
With e.Form.Controls("datetimepicker2")
    If .Value IsNot Nothing Then
        If Filter >"" Then
            Filter = Filter & " And "
        End If
        Filter = Filter & "出货日期 <= #" & .Value & "#"
    End If
End With
With e.Form.Controls("dropbox1")
    If .Value IsNot Nothing Then
        If Filter > "" Then
            Filter = Filter & " And "
        End If
        Filter = Filter & "客户编码 = \'" & .Value & "\'"
    End If
End With
If Filter > "" Then
    Tables("销出修改_table1").Filter = Filter 
    Tables("销出修改_table1").Sort  = "出货日期"
End If

上面执行正常,但改为

Tables("销出修改_table1").Filter = Filter & "回款金额 = 0 "

直接卡死,请指教,谢谢!


--  作者:有点酸
--  发布时间:2014/3/6 22:01:00
--  
Tables("销出修改_table1").Filter = Filter & " And 回款金额 = 0 "