Public SqlConn As ADODB.Connection
On Error GoTo Handler
Set SqlConn = New ADODB.Connection
SqlConn.CursorLocation = adUseClient
ConnStr = "Provider=SQLOLEDB.1;Password=sa;Persist Security Info=True;User ID=sa;Data Source=myserver"
SqlConn.ConnectionString = ConnStr
SqlConn.Open
dim rs as adodb.recordset, sqlstr as string
sqlstr= "select * from table"
set rs = Sqlstr.Execute(sqlstr)
if rs.eof then exit sub
do while rs.eof = false
xx = rs.fileds(1).value
rs.movenext
loop
sqlstr = "update table1 set filter1 = 'hello'"
SqlConn.execute sqlstr 把这段代码的意思说出来,要一步一步的详细点的