Foxtable(狐表)用户栏目专家坐堂 → 过滤筛选报错 老师!


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

主题:过滤筛选报错 老师!

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


加好友 发短信
等级:幼狐 帖子:78 积分:660 威望:0 精华:0 注册:2018/5/21 9:19:00
过滤筛选报错 老师!  发帖心情 Post By:2018/7/16 9:15:00 [显示全部帖子]

 


图片点击可在新窗口打开查看此主题相关图片如下:12.jpg
图片点击可在新窗口打开查看

 

Dim Filter As String
With e.Form.Controls("textbox1")
    If .Value IsNot Nothing Then
        If Filter > "" Then
            Filter = Filter & " And "
        End If
        Filter = Filter & "mc ='" & .Value & "'"
    End If
End With

With e.Form.Controls("textbox3")
    If .Value IsNot Nothing Then
        If Filter > "" Then
            Filter = Filter & " And "
        End If
        Filter = Filter & "no='" & .Value & "'"
    End If
End With

With e.Form.Controls("textbox4")
    If .Value IsNot Nothing Then
        If Filter > "" Then
            Filter = Filter & " And "
        End If
        Filter = Filter & "zdr='" & .Value & "'"
    End If
End With

With e.Form.Controls("textbox2")
    If .Value IsNot Nothing Then
        If Filter >"" Then
            Filter = Filter & " And "
        End If
        Filter = Filter & "gg='" & .Value & "'"
    End If
End With
With e.Form.Controls("DateTimePicker1")
    If .Value IsNot Nothing Then
        If Filter >"" Then
            Filter = Filter & " And "
        End If
        Filter = Filter & "rq >= #" & .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 & "rq<= #" & .Value & "#"
    End If
End With

Tables("客户订单下拉_Table1").filter =Filter And " [JA] = 'N'"


 回到顶部