错误提示:
35601 Element not found
91 Object variable or With block variable not set
91 Object variable or With block variable not set从表中取数已经没问题,在执行
Set newNode = tvwGroup.Nodes.Add( _
ParentNode, tvwChild, RsPower!qxbh, RsPower!qxmc, "smlbook")
是出错。
35601 Element not found
91 Object variable or With block variable not set
91 Object variable or With block variable not set从表中取数已经没问题,在执行
Set newNode = tvwGroup.Nodes.Add( _
ParentNode, tvwChild, RsPower!qxbh, RsPower!qxmc, "smlbook")
是出错。
解决方案 »
- WinXP+SP2系统,用getopenfilename,打开文件对话框显示不出来
- 如何正确得到控件(TEXT)的WIDTH?
- 关于报表9功能一个问题,请各位看一下。
- 100分求VB代码排版插件.
- VB中引用了excel9.olb 创建EXCEL的对象,安装到没有装OFFICE的机器上无法创建ACTIVEX??
- 快帮忙呀!老板提问了,要我解决!!如何得到控件中的内容,并把它保存为一幅图片???
- 再次请教~有关internetgetconnectedstate函数
- VB问题;超级难的问题!谁能够回答我啊?
- SetWindowLong 和SetWindowsHookEx二个API函数怎么用?
- 请问我想让我的程序在某个时刻执行某条语句,怎么办?
- 关于VB的一个打印问题
- 请问在VB的程序中,如果实现动态按钮的变化
ParentNode, tvwChild, RsPower!qxbh, RsPower!qxmc, "smlbook")tvwGroup 改为--> tvname
你先把on error goto... 这一句注释掉,
然后运行程序看是哪个语句出错,这样便于查找错误.另:
在childErr前要加入语句:Exit sub,否则不论是否出错,都会执行childErr后的语句
================================================================CSDN 论坛助手 Ver 1.0 B0402提供下载。 改进了很多,功能完备!★ 浏览帖子速度极快![建议系统使用ie5.5以上]。 ★ 多种帖子实现界面。
★ 保存帖子到本地[html格式]★ 监视您关注帖子的回复更新。
★ 可以直接发贴、回复帖子★ 采用XML接口,可以一次性显示4页帖子,同时支持自定义每次显示帖子数量。可以浏览历史记录!
★ 支持在线检测程序升级情况,可及时获得程序更新的信息。★★ 签名 ●
可以在您的每个帖子的后面自动加上一个自己设计的签名哟。Http://www.ChinaOK.net/csdn/csdn.zip
Http://www.ChinaOK.net/csdn/csdn.rar
Http://www.ChinaOK.net/csdn/csdn.exe [自解压]
Set newNode = tvwGroup.Nodes.Add( _
ParentNode, tvwChild, RsPower!qxbh, RsPower!qxmc, "smlbook")
上,但我实在想不出到底为什么错以及错在那里,请做过类似的朋友帮帮我,分数不够可以在加,谢谢!
'可能是你的ParentNode不存在,或者是你的"smlbook"在图象列表里不存在,也可能是你的Treeview中没有设定ImageList _
建议 在之前加上 msgbox ParentNode.Key 并且将"smlbook"去掉 看看有没有问题' 91 Object variable or With block variable not set
'只可能是你的RsPower!qxhb 和 RsPower!qxmc 出错,可能此时RsPower is nothing
'建议在Set newNode = tvwGroup.Nodes.Add( _
ParentNode, tvwChild, RsPower!qxbh, RsPower!qxmc, "smlbook") 前加上 _
MsgBox RsPower!qxbh & " " & RsPower!qxmc 看看有没有问题