Ver Mensaje Individual
  #4 (permalink)  
Antiguo 14/01/2005, 12:10
Avatar de PMP
PMP
 
Fecha de Ingreso: febrero-2003
Ubicación: Chacabuco - Buenos Aires
Mensajes: 214
Antigüedad: 22 años, 2 meses
Puntos: 1
Prueba con esto.

Código:
if categoria = "" then
   sql = "SELECT hotel, categoria FROM consulta_hoteles GROUP BY hotel, categoria, web HAVING web=True"
else
   sql = "SELECT hotel, categoria FROM consulta_hoteles GROUP BY hotel, categoria, web HAVING web=True AND categoria = " & categoria
end if