if not rs.eof and not rs.bof then while not rs.eof .. .. .. wend else response.write "sin registro" end if