Ver Mensaje Individual
  #2 (permalink)  
Antiguo 09/08/2002, 10:24
Avatar de Juansan
Juansan
 
Fecha de Ingreso: abril-2001
Mensajes: 203
Antigüedad: 24 años, 2 meses
Puntos: 0
Re: Select de base de datos de acuerdo a fecha

Asi deberia funcionar.

Sino, decinos cual es el error que te tira.

<%
dim camino, db, hoy, tabla_uf

db = Server.MapPath("indice.mdb")
hoy = Date()
Set conexion = Server.CreateObject("ADODB.Connection")
conexion.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & db & ";"
Set tabla_uf = conexion.Execute("SELECT * FROM tabla_uf WHERE tabla_uf.fecha ='hoy';")
Do While Not tabla_uf.EOF

response.write tabla_uf.Fields("valor")

tabla_uf.MoveNext
Loop
tabla_uf.Close
Set tabla_uf = Nothing
conexion.Close
Set conexion = Nothing
%>