标题:如何实现像excel一样多条件筛选功能
只看楼主
zhuyongxing
Rank: 6Rank: 6
等 级:侠之大者
威 望:1
帖 子:234
专家分:482
注 册:2009-8-5
得分:0 
xztj = True
select case index
case 2
SQL = "select * from CTSReport where [" & Trim(Label1(1).Caption) & "] = #" & Combo1(1).Text & "#"
else case
SQL = "select * from CTSReport where [" & Trim(Label1(index).Caption) & "] = """ & Combo1(index).Text & """"
end select
Text2.Text = SQL
2010-03-16 16:15
zhuyongxing
Rank: 6Rank: 6
等 级:侠之大者
威 望:1
帖 子:234
专家分:482
注 册:2009-8-5
得分:0 
xztj = True
select case index
case 2
SQL = "select * from CTSReport where [" & Trim(Label1(1).Caption) & "] = #" & Combo1(1).Text & "#"
eslecase
SQL = "select * from CTSReport where [" & Trim(Label1(index).Caption) & "] = """ & Combo1(index).Text & """"
end select
Text2.Text = SQL
End Sub
2010-03-16 16:20
yuk_yu
Rank: 3Rank: 3
等 级:论坛游侠
帖 子:334
专家分:134
注 册:2009-3-16
得分:0 
回复 8楼 风吹过b
再次感谢!!
2010-03-16 16:57



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-299421-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.015445 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved