Foxtable(狐表)用户栏目专家坐堂 → 查询窗口


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

主题:查询窗口

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


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2018/1/25 9:53:00 [显示全部帖子]


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


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2018/1/25 13:19:00 [显示全部帖子]

Dim nms() As String = {"领取人1"}
Dim sps() As String = {"'"}
Dim bjf() As String = {"="}
Dim fds() As String = {"领取人"}
Dim Filter As String
For i As Integer = 0 To nms.Length - 1
    If e.Form.Controls(nms(i)).value IsNot Nothing Then
        If filter > "" Then
            filter = filter & "and "
        End If
        filter =filter & fds(i) & bjf(i) & sps(i) & e.Form.Controls(nms(i)).value & sps(i)
    End  If
Next
If e.Form.Controls("已还").checked = True
    If filter > "" Then
        filter = filter & " and  "
    End If
    filter=filter & " 已还=true "
End If
If e.Form.Controls("未还").checked = True
    If filter > "" Then
        filter = filter & " and "
    End If
    filter=filter & " (已还 =false or 已还 is null)"
End If


Tables("刀具出入库表").filter = filter


 回到顶部