Foxtable(狐表)用户栏目专家坐堂 → [求助]如何用复选框控件实现筛选呢


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

主题:[求助]如何用复选框控件实现筛选呢

帅哥,在线噢!
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:107672 积分:547681 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2021/4/6 20:10:00 [只看该作者]

dim s as string
with e.Form.Controls("复选框1")
if .Checked then
s = s & ",'" & .text & "'"
end if
end with
with e.Form.Controls("复选框2")
if .Checked then
s = s & ",'" & .text & "'"
end if
end with
s =s.trim(",")
tables("A").filter = "政治面貌 in (" & s & ")"

 回到顶部