以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  这种代码该怎么写  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=150563)

--  作者:ygg8310
--  发布时间:2020/6/2 11:22:00
--  这种代码该怎么写
If Tables("录入").Current.IsNull("图片") Then
    e.Form.Controls("PictureBox1").Visible = False
End If
为何会失效?

--  作者:有点蓝
--  发布时间:2020/6/2 11:27:00
--  
代码在什么事件?
--  作者:ygg8310
--  发布时间:2020/6/2 12:55:00
--  

PictureBox 的 DataFormat

[此贴子已经被作者于2020/6/2 12:57:19编辑过]

--  作者:有点蓝
--  发布时间:2020/6/2 13:35:00
--  
放到"录入"表的currentchanged事件

If Tables("录入").Current is nothing andalso Tables("录入").Current.IsNull("图片") andalso Forms("xx窗口").opened Then
    Forms("xx窗口").Controls("PictureBox1").Visible = False
End If