rs.addnew 是增加记录,可能是:username 和password 变量没有值rs.Open "Select * from test where username='"&username&"'",conn 中的:Conn应该是adoDataConn吧?