Foxtable(狐表)用户栏目专家坐堂 → 窗口TALBE 筛选


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

主题:窗口TALBE 筛选

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


加好友 发短信
等级:幼狐 帖子:170 积分:1539 威望:0 精华:0 注册:2013/8/21 9:41:00
窗口TALBE 筛选  发帖心情 Post By:2014/3/6 19:44:00 [显示全部帖子]

窗口打开后,希望tables("窗口1_table1")为空表,不显示数据,怎么做?谢谢

 回到顶部
帅哥哟,离线,有人找我吗?
asionwong
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:幼狐 帖子:170 积分:1539 威望:0 精华:0 注册:2013/8/21 9:41:00
  发帖心情 Post By: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 "

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


 回到顶部