Ver Mensaje Individual
  #2 (permalink)  
Antiguo 14/12/2016, 00:56
wwwmaster
 
Fecha de Ingreso: noviembre-2002
Ubicación: DF
Mensajes: 1.056
Antigüedad: 21 años, 5 meses
Puntos: 37
Respuesta: formato consulta sql

Yo lo hago asi:
strWhere = ""
While
if strWhere<>"" then strWhere=strWhere & " AND"
strWhere = strWhere & " producto LIKE '%" & s1 & "%'"
end while

if strWhere<>"" then
' strSql es otra variable, la que contiene el select sin el where
strSql = strSql & " WHERE " & strWhere
end if