Il controllo dev'essere invertito:

codice:
if rs.eof then 
   rif="Nessuna Offerta" 
else 
   rif=rs("rif") 
end if