以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.net/bbs/index.asp)
--  专家坐堂  (http://foxtable.net/bbs/list.asp?boardid=2)
----  同角色查询  (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=103058)

--  作者:zoudezhao
--  发布时间:2017/6/29 19:32:00
--  同角色查询

Dim Filter As String
With e.Form.Controls("ComboBox1")
    If .Value IsNot Nothing Then
        Filter = "媒体 = \'" & .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 & "地址 = \'" & .Value & "\'"
    End If
End With
With e.Form.Controls("ComboBox3")
    If .Value IsNot Nothing Then
        If Filter > "" Then
            Filter = Filter & " And "
        End If
        Filter = Filter & "客户类型 = \'" & .Value & "\'"
    End If
End With
With e.Form.Controls("ComboBox5")
    If .Value IsNot Nothing Then
        If Filter > "" Then
            Filter = Filter & " And "
        End If
        Filter = Filter & "电话 = \'" & .Value & "\'"
    End If
End With
With e.Form.Controls("ComboBox7")
    If .Value IsNot Nothing Then
        If Filter > "" Then
            Filter = Filter & " And "
        End If
        Filter = Filter & "创建人 = \'" & .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 & "客户姓名 = \'" & .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 & "编号 = \'" & .Value & "\'"
    End If
End With
With e.Form.Controls("DateTimePicker3")
    If .Value IsNot Nothing Then
        If Filter >"" Then
            Filter = Filter & " And "
        End If
        Filter = Filter & "分配日期 = \'" & .Value & "\'"
    End If
End With
With e.Form.Controls("DateTimePicker5")
    If .Value IsNot Nothing Then
        If Filter >"" Then
            Filter = Filter & " And "
        End If
        Filter = Filter & "创建日期 = \'" & .Value & "\'"
    End If
End With
With e.Form.Controls("DateTimePicker4")
    If .Value IsNot Nothing Then
        If Filter >"" Then
            Filter = Filter & " And "
        End If
        Filter = Filter & "日期 = \'" & .Value & "\'"
    End If
End With

If Filter > "" Then
    DataTables("表A").loadFilter = Filter
DataTables("表A").Load
End If


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

我如果想在上图中分组控件的数据加载调整成所有用户中User.Roles相同的客户应该怎么写。没有分组列。。只有用户名列。。。。有点晕。。。求各位老师指教。。


--  作者:有点色
--  发布时间:2017/6/29 21:00:00
--  

 你看懂你表达的意思。

 

 循环所有用户,可以得到用户所有信息 http://www.foxtable.com/webhelp/scr/0609.htm

 


--  作者:zoudezhao
--  发布时间:2017/6/30 15:21:00
--  

突然发现有点钻牛角尖了感谢色超版