以文本方式查看主题

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

--  作者:sbq123456
--  发布时间:2018/1/19 15:01:00
--  我想在打开项目后执行
我想在打开项目后执行 锁定主表每一条记录, 主表锁定后子表相应锁定
--  作者:有点甜
--  发布时间:2018/1/19 15:29:00
--  
For Each t As Table In Tables
    t.AllowEdit = False
Next

--  作者:有点甜
--  发布时间:2018/1/19 15:30:00
--  

或者

 

For Each t As Table In Tables
    For Each r As Row In t.rows
        r.locked = True
    Next
Next