Foxtable(狐表)用户栏目专家坐堂 → [求助]如何动态生成过滤条件?


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

主题:[求助]如何动态生成过滤条件?

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


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

这个意思?

 

Dim nd As WinForm.ComboBox = e.Form.Controls("年度")
Dim yf As WinForm.ComboBox = e.Form.Controls("月份")
'Dim xhgg As WinForm.ComboBox = e.Form.Controls("姓名")
yf.ComboList = DataTables("值班排序表").GetComboListString("月份","年度 = '" & nd.text & "'","月份")
Dim filter As String = "1=1"
If nd.Text > "" Then
    filter &= " and 年度 = '" & nd.text & "'"
End If
If yf.Text > "" Then
    filter &= " and 月份 like '*" & yf.text & "*'"
End If


Tables("值班排序表").Filter = filter

 

 

http://www.foxtable.com/help/topics/1058.htm

 


 回到顶部