
23/11/2004, 05:16
|
| | Fecha de Ingreso: noviembre-2004 Ubicación: trelew - chubut
Mensajes: 134
Antigüedad: 20 años, 7 meses Puntos: 0 | |
if (Request("fecha_inicio")<>"")and (Request("fecha_fin")<>"") then
if(qry<>"")then
qry = qry & " AND (fecha_ini>=#"&cdate(Request("fecha_inicio"))&"# AND fecha_fin<=#"&cdate(Request("fecha_fin"))&"#)"
else
qry = " WHERE (fecha_ini>=#"&cdate(Request("fecha_inicio"))&"# AND fecha_fin<=#"&cdate(Request("fecha_fin"))&"#)" --- > borrale la concatenacion qry porque si entra a este else quiere decir que qry es =""
end if
end if
aca tendrias que construir una qry por si el usuario no ingreso fechas correctas o fechas vacias
set rs=con.execute("SELECT * FROM ediciones "&qry&" order by fecha_ini DESC") |