Office中国论坛/Access中国论坛
标题:
怎么在数据表中通过代码添加数据
[打印本页]
作者:
xemcluobiq
时间:
2008-4-9 19:25
标题:
怎么在数据表中通过代码添加数据
以下是我的代码
Dim rs As ADODB.Recordset 'define performance page's recordset
Set rs = New ADODB.Recordset
'performance data
rs.Open "performance data", CurrentProject.Connection, adOpenDynamic, adLockOptimistic
rs.AddNew
rs("seriesmotorno") = "txtseriesmotorno.Text"
rs("itemcode") = "txtitemcode8.Text"
rs("ratingvoltage") = "txtratingvoltage.Text"
rs("noloadcurrent") = "txtcurrent.Text"
rs("noloadspeed") = "txtspeed.Text"
rs("onloadcurrent") = "txtcurrentonload.Text"
rs("onloadspeed") = "txtspeedonload.Text"
rs("onloadtorque") = "txttorque.Text"
rs("wirediamension") = "txtwiredia.Text"
rs.Update
错误是无效的SQL 语句
作者:
wind7412
时间:
2009-2-5 13:03
不太懂,还要再学习.
作者:
szblueidea
时间:
2009-3-8 22:54
up top ,can't help you.
作者:
lsb79967530
时间:
2009-4-29 16:59
不太懂,还要再学习
作者:
flymouse88
时间:
2009-5-5 19:34
由于"leolong"发表的 "ACCESS2003高清教程下载!(40集全部更新完)"下载中需要付钱,我没有,不得已二灌水,请谅解!
作者:
zhengjianbiao
时间:
2009-6-25 21:57
由于"leolong"发表的 "ACCESS2003高清教程下载!(40集全部更新完)"下载中需要付钱,我没有,不得已二灌水,请谅解!
flymouse88 发表于 2009-5-5 19:34
我也是
作者:
dfnt11
时间:
2010-2-7 21:46
不太懂
欢迎光临 Office中国论坛/Access中国论坛 (http://www.office-cn.net/)
Powered by Discuz! X3.3