oledbconnection conn=new oledbconnection("连接字符串")conn.open()oledbcommand1.connection=conn;oledb.comandtext= "SELECT 用户, 密码 FROM yonghu where 用户='" & Me.TextBox1.Text & "' and 密码='" & Me.TextBox2.Text & "'"