以文本方式查看主题

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

--  作者:arrtj
--  发布时间:2015/11/25 16:27:00
--  未将对象引用设置到对象的实例。
设计了一个窗口,绑定“公司设置”表,按钮“保存”的代码为
With Tables("公司设置")
    If .Current IsNot Nothing Then
        .Current.Save()
    End If
End With
Forms("添加公司").close()

运行出现:未将对象引用设置到对象的实例。

--  作者:大红袍
--  发布时间:2015/11/25 16:28:00
--  

此代码不会报错。

 

去看看你BeforeSaveDataRow事件。