以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  列A选择不同的值时,列B打开不同的下拉窗口  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=120796)

--  作者:deliangzhaoe
--  发布时间:2018/6/24 7:40:00
--  列A选择不同的值时,列B打开不同的下拉窗口
有列A和列B两列,列A有:123和456两种值供选择,当选择123时,列B下拉窗口1打开,当选择456时,列B下拉窗口2打开,表事件怎样设置?
谢谢

--  作者:有点甜
--  发布时间:2018/6/24 21:55:00
--  

prepareEdit事件

 

If e.col.name = "B" Then

    If e.row("A") = "123" Then

       e.col.DropForm = "窗口1"

    ElseIf e.row("A") = "456" Then 

       e.col.DropForm = "窗口2"

    End If

End If


--  作者:deliangzhaoe
--  发布时间:2018/6/26 20:49:00
--  
谢谢老师