Ver Mensaje Individual
  #7 (permalink)  
Antiguo 18/05/2007, 06:36
tammander
 
Fecha de Ingreso: enero-2006
Ubicación: Torroles (Costa der Só)
Mensajes: 1.017
Antigüedad: 19 años, 3 meses
Puntos: 7
Re: Ayuda con consulta usando fechas

mmmm comprueba las fechas. Pasaselas en formato americano:

SELECT * FROM tabla1 where fecha Between #mm/dd/aaaa# and #mm/dd/aaaa# order By fecha desc


una funcioncita

Código:
function change2USDateFormat(fechaeuropea)
dim a, d, m, res
   res = ""
   if isDate(fechaeuropea) then
          d = Day(fechaeuropea)
          m = Month(fechaeuropea)
          a = Year(fechaeuropea)
          
          res = m & "/" & d & "/" & a
   end if

   change2USDateFormat = res
end function



Un saludo
__________________
"Tus pecados son el estiércol sobre el que florecerán las flores de tus virtudes" - Gerald Messadié -