Ver Mensaje Individual
  #6 (permalink)  
Antiguo 09/05/2002, 02:55
danipermuy
 
Fecha de Ingreso: abril-2002
Mensajes: 216
Antigüedad: 23 años
Puntos: 0
Re: Pregunta dificil

sige dando error, mirar el codigo:
Código:
<body>
<%
dim comercial, fechaini, fechafin
comercial= "'" & request.form("comercial") & "'"
fechaini= "#" & Cdate(request.form("fechaini")) & "#"
fechafin= "#" & Cdate(request.form("fechafin")) & "#"

set conexion = createobject("ADODB.connection")
conexion.open "PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE=C:\inetpub\wwwroot\itresa.mdb"
strsql = "select * from visitas where dni = " &comercial& " and fecha >=" &fechaini& "and fecha <=" &fechafin  
set miconexion = conexion.execute(strsql)

if err.description <> "" then
response.write " <B> error base de datos: " & Err.Description & "</B>"
else
response.write miconexion
end if

miconexion.close
conexion.close
set miconexion = nothing
set conexion= nothing
%>
</body>
Veis algo mal?¿?