以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- [求助]代码问题出在哪里? (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=62979) |
-- 作者:fengjunbo -- 发布时间:2015/1/11 14:31:00 -- [求助]代码问题出在哪里? 直接上代码 Dim txt1 As String = Forms("网点信息公告").Controls("textbox1").Value MainTable = Tables("主窗") Forms("终端主页").controls("textbox3").value = txt1 直接报错 Object reference not set to an instance of an object不知道怎么回事,应该怎么改
|
-- 作者:fengjunbo -- 发布时间:2015/1/11 14:38:00 -- 甜总,求助啊 |
-- 作者:有点甜 -- 发布时间:2015/1/11 16:00:00 -- 窗口没打开 If Forms("网点信息公告").Opened Then Dim txt1 As String = Forms("网点信息公告").Controls("textbox1").Value MainTable = Tables("主窗") If Forms("终端主页").Opened Then Forms("终端主页").controls("textbox3").value = txt1 End If End If
|
-- 作者:fengjunbo -- 发布时间:2015/1/11 17:07:00 -- 问题解决,非常感谢,遇到了好几次这样的问题了,都不知道怎么解决,这下解决了,谢谢甜总 |