VB 问题!!!ADODC.RECORDSET.ADDNEW

suiming 2005-04-20 02:13:28
用ADODC.RECORDSET.ADDNEW时报错如下:
报的是:实时错误'-2147217842 (80040e4e)'
是什么错?该怎么改呀?
程序:adodc.recordset.addnew
adodc.recordser(id)=txtid.text
adodc.recordser(name)=txtname.text
adodc.recordser(adress)=txtadress.text
adodc.recordset.update
...全文
164 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
goodname008 2005-04-21
  • 打赏
  • 举报
回复
用connection的execute方法,执行SQL,用insert。
suiming 2005-04-21
  • 打赏
  • 举报
回复
是这样的:
adodc.recordset.addnew
adodc.recordset.fields("id")=txtid.text
adodc.recordset.fields("name")=txtname.text
adodc.recordset.fields("adress")=txtadress.text
adodc.recordset.update
前面打错了,不好意思.
chamys 2005-04-20
  • 打赏
  • 举报
回复
adodc.recordset.addnew
adodc.recordset("id")=txtid.text
adodc.recordset("name")=txtname.text
adodc.recordset("adress")=txtadress.text
adodc.recordset.update



對象沒有找到。
suiming 2005-04-20
  • 打赏
  • 举报
回复
报错是什么意思?
ljhdi 2005-04-20
  • 打赏
  • 举报
回复
上面的代码没有问题的,可能是其它的错误
suiming 2005-04-20
  • 打赏
  • 举报
回复
不行的
还是那个错
nightbit 2005-04-20
  • 打赏
  • 举报
回复
recordser写错了改成recordset
qingdaobus 2005-04-20
  • 打赏
  • 举报
回复
呵呵
ljhdi 2005-04-20
  • 打赏
  • 举报
回复
adodc.recordset.addnew
adodc.recordset.fields("id")=txtid.text
adodc.recordset.fields("name")=txtname.text
adodc.recordset.fields("adress")=txtadress.text
adodc.recordset.update
ljhdi 2005-04-20
  • 打赏
  • 举报
回复
adodc.recordset.addnew
adodc.recordser("id")=txtid.text
adodc.recordser("name")=txtname.text
adodc.recordser("adress")=txtadress.text
adodc.recordset.update

7,765

社区成员

发帖
与我相关
我的任务
社区描述
VB 基础类
社区管理员
  • VB基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧