hago un select con unos diversos where, luego a veces me encuentra algún registro y otras veces no. Después hago otra búsqueda con los resultados de la primera, y ahí está el problema, cuando en la primera búsqueda me ha encontrado algún registro pues no problem, pero cuando no me ha encontrado ningún registro me da un error en la segunda búsqueda.
Supongo que debería de poner algún if con un IsNull o algo así pero no consigo que vaya
strQueryInc1="SELECT * FROM partners where cp='"&request.form("cp")&"' and active=yes order by cp"
Set bcp = Conn.Execute(strQueryInc1)
if isNull(bcp) then
else
strQueryInc2="SELECT * FROM partners where active=yes and ciudad='"&bcp("ciudad")&"' order by cp"
Set bresto = Conn.Execute(strQueryInc2)
Alguien me puede ayudar?

Muchas gracias!!