Foxtable(狐表)用户栏目专家坐堂 → 多选的时候,只显示一个,其他两个备选的不显示,应该怎么改?


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

主题:多选的时候,只显示一个,其他两个备选的不显示,应该怎么改?

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


加好友 发短信
等级:狐神 帖子:5015 积分:25363 威望:0 精华:0 注册:2015/8/18 9:21:00
  发帖心情 Post By:2015/11/6 8:19:00 [显示全部帖子]

Dim Filter As String = "1=1"
With e.Form.Controls("userfin")
    If .Value IsNot Nothing Then
        Filter = " name = '" & .Value & "'"
    End If
End With

Dim f2 As String
With e.Form.Controls("userfin1")
    If .Checked = True Then
        f2 = "状态 = '未送'"
    End If
End With
With e.Form.Controls("ok")
    If f2 > "" Then
        f2 = f2 & " or "
    End If
    If .Checked = True Then
        f2 &= "状态 = 'ok' "
    End If
End With
With e.Form.Controls("new")
    If f2 > "" Then
        f2 = f2 & " or "
    End If
    If .Checked = True Then
        f2 &= "状态 = '新'"
    End If
End With
If f2 > "" Then
    Filter = Filter & " and (" & f2 & ")"
End If

With e.Form.Controls("cmbEmployee")
    If .Value IsNot Nothing Then
        If Filter >"" Then
            Filter = Filter & " And "
        End If
        Filter = Filter & "shangcheng = '" & .Value & "'"
    End If
End With
With e.Form.Controls("StartDate")
    If .Value IsNot Nothing Then
        If Filter >"" Then
            Filter = Filter & " And "
        End If
        Filter = Filter & "time >= #" & .Value & "#"
    End If
End With
With e.Form.Controls("EndDate")
    If .Value IsNot Nothing Then
        If Filter >"" Then
            Filter = Filter & " And "
        End If
        Filter = Filter & "time <= #" & .Value & "#"
    End If
End With

If Filter > "" Then
    Tables("qt2").Filter = Filter
    '     Tables("weixin").Filter = Filter
End If

 


 回到顶部