Ver Mensaje Individual
  #1 (permalink)  
Antiguo 17/02/2010, 12:12
miggim
 
Fecha de Ingreso: mayo-2008
Mensajes: 38
Antigüedad: 16 años, 8 meses
Puntos: 0
Between no se como ponerlo

Tengo un campo DateTime, FechaEntrega y dos valores FechaInicial = me.calendar1.value y FechaFinal=me.calendar2.value. No se como usar el Between para obtener los valores entre las dos fechas, me da que no existen registros. He hecho una burrada que funciona
" WHERE Year(FechaEntrega)*10000 + Month(FechaEntrega)*100 + Day (FechaEntrega) <= " & Year(FechaFinal) * 10000 & " + " & Month(FechaFinal) * 100 & " + " & Day(FechaFinal) & " " & _
"And Year(FechaEntrega)*10000 + Month(FechaEntrega)*100 + Day (FechaEntrega) >= " & Year(FechaInicial) * 10000 & " + " & Month(FechaInicial) * 100 & " + " & Day(FechaInicial) & "

pero no es muy elegante, jeje y quisiera usar el Between
¿alguien me ayuda? GRACIAS