Ver Mensaje Individual
  #8 (permalink)  
Antiguo 06/05/2003, 15:49
Avatar de bakanzipp
bakanzipp
 
Fecha de Ingreso: noviembre-2001
Ubicación: santiago de shilli
Mensajes: 2.554
Antigüedad: 23 años, 4 meses
Puntos: 0
chiii...no keris naaa...

fecha_tope=dateadd("d",-7,now())

SQL_info="SELECT * FROM info"
set oConn_info = Server.CreateObject("ADODB.Connection")
oConn_info.Open MM_pcte_STRING ' La conexion se encuentra en la carpeta Connections

set rs_info = oConn_info.Execute(SQL_info)

if not rs_info.eof and not rs.bof then
while not rs.eof then
if rs_info("fecha") < fech_tope then
sql="delete from info where id = " & rs("id_tabla)" &";
oConn_info.Execute(sql)
else
'no se ke mas
end if
wend
end if