Ver Mensaje Individual
  #10 (permalink)  
Antiguo 30/06/2010, 15:31
manolo572
 
Fecha de Ingreso: mayo-2010
Mensajes: 78
Antigüedad: 14 años
Puntos: 0
Respuesta: Que es mejor case o if???

Hola listo ya encontre la solucion

Código ASP:
Ver original
  1. <%
  2.  
  3. if consulta="Sinteticos" OR consulta="Liquidos" Then
  4.  
  5. Set rs1 = Server.CreateObject("ADODB.Recordset")
  6. selectSQL1 ="select * from Proy_gral where prycategoria='"&consulta &"' "& condicion
  7. Set rs1=prycxn.execute(selectSQL1)
  8.  
  9. else
  10.  
  11. selectSQL1 ="select * from Proy_gral where (pryarea1="&consulta&" or pryarea2=" &consulta&" or pryarea3="&consulta &" or pryarea4="& consulta&" or pryarea5="&consulta & ") " & condicion
  12. Set rs1=prycxn.execute(selectSQL1)
  13. end if
  14.  
  15. %>


Gracias por la ayuda!!!