以文本方式查看主题

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

--  作者:凡夫俗子
--  发布时间:2016/4/13 15:15:00
--  如何判断当前表是否是窗口表
如何判断当前表是否是窗口表(窗口表有能是 主表或副本表)
--  作者:大红袍
--  发布时间:2016/4/13 16:09:00
--  
If  CurrentTable.form Is Nothing Then
    msgbox("不是窗口表")
Else
    If CurrentTable.name = CurrentTable.DataTable.name Then
        msgbox("窗口主表")
    Else
        msgbox("副本表")
    End If
End If