Ver Mensaje Individual
  #4 (permalink)  
Antiguo 25/05/2008, 01:34
Avellaneda
Colaborador
 
Fecha de Ingreso: enero-2008
Ubicación: Unas veces aquí, otras veces allí
Mensajes: 1.482
Antigüedad: 16 años, 3 meses
Puntos: 37
Respuesta: Consulta con fechas

Hola,

pásale los valores fecha en formato americano:

adostock.RecordSource = "select * from stock where sto_tip=1 and sto_fin= #" & Format(maskfecha.Text, "mm/dd/yyyy") & "#"

adostock.RecordSource = "select * from stock where sto_tip = 1 and sto_fin Between #" & Format(maskfechai.Text, "mm/dd/yyyy") & "# And #" & Format(Maskfechaf.Text, "mm/dd/yyyy") & "#"