codice:
if rs.Eof and rs.bof then
'record non trovato
Else
'codice
End if
rs.close
set rs = nothing