Dim con as new Adodb.Connection
con.open "Provider=microsoft.jet.oledb.4.0;data source=d:\a.mdb"
dim cmd as new
cmd.activateConnection=con
from a where name='" & text1.text & "'"
cmd.execute
dim rs as new recordset
rs.cursorlocation=aduseclient
rs.open "select * from a",con
msgbox rs.recordcount
rs.close
con.close
set con=nothing