以文本方式查看主题

-  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=65798)

--  作者:yangweicheng
--  发布时间:2015/3/23 13:10:00
--  设置问题

我在表currentchanged事件中写入以下代码,可以达到目的,但在出现空表时出现错误


If e.Table.current.DataRow("审批")<>True  Then
    Tables("sp9.mx1").AllowEdit = True
Else
    Tables("sp9.mx1").AllowEdit = False
End If

--  作者:Bin
--  发布时间:2015/3/23 13:35:00
--  
if e.table.current isnot nothing then
If e.Table.current.DataRow("审批")<>True  Then
    Tables("sp9.mx1").AllowEdit = True
Else
    Tables("sp9.mx1").AllowEdit = False
End If
end if

--  作者:yangweicheng
--  发布时间:2015/3/23 13:41:00
--  
谢谢