Ver Mensaje Individual
  #1 (permalink)  
Antiguo 20/10/2006, 07:25
Chelincito
 
Fecha de Ingreso: octubre-2006
Mensajes: 1
Antigüedad: 18 años, 6 meses
Puntos: 0
Problemas de fechas ASP+Access

Tengo un formulario que borra registros por fecha
<body>
<div align="center">
<table width="639" border="0" align="center">
<tr>
<td width="362"><div align="right"><span class="Estilo2">Eliminacion de Noticias por Fecha </span></div></td>
<td width="84"><div align="right"><a href="principal.html"><img src="Imagenes/inicio.jpg" alt="Volver al Inicio" width="32" height="32" border="0" /></a></div></td>
</tr>
</table>
</div>
<p>&nbsp;</p>
<form id="form1" name="form1" method="post" action="delete1.asp">
<p>&nbsp; </p>
<p align="center"><strong>Ingrese Fecha</strong>
<input name="fenoticia" type="text" id="fenoticia" size="15" maxlength="10" />
</p>
<p align="center">
<input name="Borrar" type="submit" id="Borrar" value="Borrar" />
<input type="reset" name="Submit2" value="Restablecer" />
</p>
</form>

Luego rescato los datos en ASP:
<%
fechanoticia=(request.form("fenoticia"))
response.write (fechanoticia)
MiBD=Server.MapPath ("Noticias.mdb")
Set BD= Server.Createobject("ADODB.Connection")
Bd.Open "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=" & MiBD
BD.execute "delete from noticia where Noticia.Fe_ingreso=fechanoticia" , BD
BD.Close
Set BD=Nothing
%>

y me da error.

El campo fecha es con formato fecha del access.
Saludos
Chelin