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


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

主题:筛选

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


加好友 发短信
等级:四尾狐 帖子:825 积分:1650 威望:0 精华:0 注册:2021/7/30 8:48:00
筛选  发帖心情 Post By:2022/1/7 17:57:00 [显示全部帖子]

If e.Form.Controls("TextBox2").Text = "" Then
Tables("录入窗口_table3").filter = "总sku='" & "null" & "'"
Else
Dim Filter As String
Dim txt1 As String = e.Form.Controls("TextBox2").Text
Dim tbl As Table = Tables("录入窗口_table3")
If txt1 = "" Then
    tbl.Filter = ""
Else
    Dim Values() As String
    Values = txt1.split(",")
    Dim f As String
    For Index As Integer = 0 To Values.Length - 1
        If f > "" Then f = f & " or "
        Dim txt As String =Values(Index)
        txt = "'%" & txt.replace("*","[*]") & "%'"
        f =  f & "总sku Like " & txt 
        
    Next
    
    tbl.Filter = f
End If

If Filter > "" Then
    Tables("录入窗口_table3").Filter = Filter
End If 
End If
怎么将模糊筛选改为普通筛选

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


加好友 发短信
等级:四尾狐 帖子:825 积分:1650 威望:0 精华:0 注册:2021/7/30 8:48:00
  发帖心情 Post By:2022/1/7 18:02:00 [显示全部帖子]

我搜索d01就查到d01-1跟d01,我想他精确一些,只能搜到d01
[此贴子已经被作者于2022/1/7 18:02:35编辑过]

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


加好友 发短信
等级:四尾狐 帖子:825 积分:1650 威望:0 精华:0 注册:2021/7/30 8:48:00
  发帖心情 Post By:2022/1/8 8:41:00 [显示全部帖子]

If e.Form.Controls("TextBox2").Text = "" Then
Tables("录入窗口_table3").filter = "总sku='" & "null" & "'"
Else
Dim Filter As String
Dim txt1 As String = e.Form.Controls("TextBox2").Text
Dim tbl As Table = Tables("录入窗口_table3")
If txt1 = "" Then
    tbl.Filter = ""
Else
    Dim Values() As String
    Values = txt1.split(",")
    Dim f As String
    For Index As Integer = 0 To Values.Length - 1
        If f > "" Then f = f & " or "
        Dim txt As String =Values(Index)
        
txt = "'" & txt.replace("*","[*]") & "'"
        f =  f & "总sku = " & txt 
        
    Next
    
    tbl.Filter = f
End If

If Filter > "" Then
    Tables("录入窗口_table3").Filter = Filter
End If 
End If
老师如图我只想显示这个应该怎么修改
图片点击可在新窗口打开查看此主题相关图片如下:212e0cacb31560fdac1116d4f454734.png
图片点击可在新窗口打开查看

 回到顶部