菜鸟求助!!!!!!!!!!!!!!!!!!!!!!!

请问vb中,access怎么用ado连
---------------------------------------------------------------

引用 ado ,然后写

dim conn as adodb.connection
conn.open strconn
dim rs as new adodb.recordset
rs.open strsql,conn,1,3
打开纪录集后就可以操作了
dim a
a=rs("字段名")
rs.movenext
rs("字段名")=a
rs.update
rs.close
conn.close
set rs=nothing
set conn=nothing

Published At
Categories with 数据库类
Tagged with
comments powered by Disqus