Foxtable(狐表)用户栏目专家坐堂 → [求助]模糊查询


  共有7789人关注过本帖平板打印复制链接

主题:[求助]模糊查询

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


加好友 发短信 一级勋章
等级:超级版主 帖子:7235 积分:40574 威望:0 精华:16 注册:2008/8/31 23:23:00
  发帖心情 Post By:2013/7/10 0:24:00 [只看该作者]

Dim cpth As String = e.Form.Controls("产品图号").Value
Dim zwmc As String = e.Form.Controls("中文名称").Value
Dim zwcl As String = e.Form.Controls("中文材料").Value
Dim zwgg As String = e.Form.Controls("中文规格").Value
Dim Filter As String
If cpth <> ""
    Filter = "产品图号 like '*" & cpth & "*'"
End If
If zwmc <> ""
    If Filter = ""
        Filter = "中文名称 like '*" & zwmc & "*'"
    Else
        Filter = Filter & " and 中文名称 Like '*" & zwmc & "*'"
    End If
End If
If zwcl <> ""
    If Filter = ""
        Filter = "中文材料 like '*" & zwcl & "*'"
    Else
        Filter = Filter & " and 中文材料 Like '*" & zwcl & "*'"
    End If
End If
If zwgg <> ""
    If Filter = ""
        Filter = "中文规格 like '*" & zwgg & "*'"
    Else
        Filter = Filter & " and 中文规格 Like '*" & zwgg & "*'"
    End If
End If
Tables("产品").Filter =Filter


 回到顶部
总数 11 1 2 下一页