ho un problema con uno script asp:

codice:
<%
sqlb="select * from annunci where cognome='" & search & "' and idcategoria='21' and titolo='mare'"
set rsb=conn.execute(sqlb)
if not rsb.eof then
 %>

Pizzerie al mare


<% end if%>
l'errore che mi dà è il seguente:

codice:
Microsoft VBScript runtime error '800a01a8' 

Object required
mi sono accorto che l'esecuzione del codice sopra si ferma alla riga con : if not rsb.eof then


qualcuno sa dirmi perchè?