以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 下拉列表问题请教 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=44834) |
-- 作者:有点甜 -- 发布时间:2014/1/9 22:12:00 -- 不是触发了datacolchanged等事件了么? |
-- 作者:有点甜 -- 发布时间:2014/1/9 22:41:00 -- 那不显示江苏、台湾这样可好? 如果要按照你的思路,把代码写到Datacolchanging事件 if e.datacol.name = "地区列" then if e.newValue = "江苏" orelse e.newValue = "台湾" then e.newValue = "中国" end if end if
|
-- 作者:有点甜 -- 发布时间:2014/1/9 23:02:00 -- 代码 if e.datacol.name = "地区列" then if e.newValue = "江苏" orelse e.newValue = "台湾" then msgbox("请重选") e.cancel = true end if end if |