do while not rs.eof if pl1=rs("pl") then ...... end if rs.movenextloop把两者写在一起是不可能的,因为当rs.eof时,由于没有当前记录,那么rs("pl")就出错了!