vb 数据库查询问题!

2025-01-21 05:59:42
推荐回答(1个)
回答1:

数据库链接,你自己来
sql="select * from DB where Names='" & Text1.text & "' and Pass='" & Text2.text & "'" "
rs.open sql,conn,1,2
if rs.RecordCount >0 then
msgbox rs("Admins")
end if
rs.close
conn.close