Foxtable(狐表)用户栏目专家坐堂 → 求助:如何在表的行里增加一个表


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

主题:求助:如何在表的行里增加一个表

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


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2014/5/9 14:13:00 [只看该作者]

以下是引用qq864729713在2014-5-9 13:33:00的发言:

好了, 谢谢。 如果说我类别需要和产品名称结合一起查询? 需要怎么改代码?

 

Dim cpmc As WinForm.TextBox = e.Form.Controls("产品名称")
Dim lb As WinForm.ComboBox = e.Form.Controls("类别")
Dim pz As WinForm.ComboBox = e.Form.Controls("牌子")


Dim Filter As String = "1=1 "
With e.Form.Controls("产品名称")
    If .Value IsNot Nothing Then
        Filter &= " and 产品名称 like '*" & cpmc.text & "*'"
    End If
End With
With e.Form.Controls("类别")
    If .Value IsNot Nothing Then
        Filter &= " and 类别 ='" & lb.text & "'"
    End If
End With
With e.Form.Controls("牌子")
    If .Value IsNot Nothing Then
        Filter &= " and 牌子 ='" & pz.text & "'"
    End If
End With
If Filter > "" Then
    e.Form.Controls("Table1").Table.Filter = Filter
End If


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