loop 移到两个end if 后面。不过这段代码有点……改成这样简单点,不用循环Set rst = conn.Execute("select m_account,m_password from members where 姓名字段='"& text1.text &"' and 密码字段='" & text2.text &"' ")if rst.eof=false or rst.bof=false thenme.hideform2.show