
28/12/2005, 08:23
|
 | | | Fecha de Ingreso: diciembre-2005
Mensajes: 13
Antigüedad: 19 años, 4 meses Puntos: 0 | |
problema con fecha hola yo de nuevo y con el mismo problema, e buscado o tratado de consegir la solucion pero no pasa na
porfa me puedan ayudar:
(el formulario)
<form name="form1" method="post" action="Consulta_entre_fecha2.asp">
<table width="200" border="1" bordercolor="#33CCFF" bgcolor="#000000">
<tr>
<td bgcolor="#66CCFF"><strong>FECHA:</strong></td>
<td bgcolor="#33CCFF"><input name="fecha" type="text1" id="fecha"></td>
<td bgcolor="#33CCFF"><input name="fecha" type="text2" id="fecha"></td>
<td bgcolor="#33CCFF"><input type="submit" name="Submit" value="Buscar"></td>
<td bgcolor="#33CCFF"><input type="reset" name="Submit" value="Restablecer">
</td>
</tr>
</table>
</form>
(el proceso)
<%fecha=request.Form("fecha")
Dim conexion, registros, basedatos, consulta
basedatos = Server.MapPath("./reservas.mdb")
Set conexion = Server.CreateObject("ADODB.Connection")
conexion.Open("Driver={Microsoft Access Driver (*.mdb)}; DBQ=" & basedatos)
consulta = "SELECT * FROM auditorio where [auditorio.fecha] between '"&text1&"' and '"&text2&"'"
Set registros = conexion.Execute(consulta)
%>
<%if registros.EOF then%>
<h3 align="center">
<font color="#FF0000">No hay datos que coincidan con su petición </font></h3>
<p align="center"><a href="Consulta_entre_fecha1.asp">Intente de nuevo</a></p>
<%else%><br><br>
<div id="Layer1" style="position:absolute; left:124px; top:27px; width:753px; height:185px; z-index:1">
<table width="751" border="0">
<tr>
<th width="103" bgcolor="#66CCFF">Fecha
<th width="146" bgcolor="#66CCFF">Modulo
<th width="115" bgcolor="#66CCFF">Solicitante
<th width="162" bgcolor="#66CCFF">Comentarios </tr>
<%
Do while not registros.eof
%>
<tr>
<td align="center"><%=registros.Fields("fecha")%></td><br>
<td align="center"><%=registros.Fields("modulo")%></td>
<td align="center"><%=registros.Fields("solicitante")% ></td>
<td align="center"><%=registros.Fields("comentarios")% ></td>
</tr>
<%
registros.MoveNext
loop
registros.close
End if%>
</table>
<p align="center"><a href="Consulta_entre_fecha1.asp">Atras</a></p>
</div>
y me manda este error, quiza es basico pero no puedo solucionarlo
Información técnica (para personal de soporte técnico)
Tipo de error:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E07)
[Microsoft][Controlador ODBC Microsoft Access] No coinciden los tipos de datos en la expresión de criterios.
/prueba/Consulta_entre_fecha2.asp, línea 16
Tipo de explorador:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.1.4322)
Página:
POST 57 bytes to /prueba/Consulta_entre_fecha2.asp
Datos de POST:
fecha1=10%2F10%2F2006&fecha2=30%2F12%2F2006&Submit =Buscar
Hora:
martes, 27 de diciembre de 2005, 9:18:17 |