
14/01/2005, 12:10
|
 | | | 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
|