consulta por rango de fechas
Publicado por Javier sargado (3 intervenciones) el 01/09/2004 01:15:20
bueno tengo una CONSULTA POR FECHAS LAS CUALES NO ME TOMA LASQUE LES INDICO E INTENTADO VARIAS FORMAS ESTE ES UNO DE LOS CXODIGO PORFAVOR NECESITO CUALQUIER CODIGO PARA PODER PROBAR Y SOLUCIONAR ESTE PRG AQUI ESTA EL CODIGO
Fin = Me.Fecha_I
Ter = Me.Fecha_T
Cons = "select * from ventas " _
& "WHERE fecha_inicio <= " & "#" & Format$(Fin, "mm/dd/yyyy") & "#" _
& " And fecha_Termino >= " & "#" & Format$(Ter, "mm/dd/yyyy") & "#" & " "
Set Rec = Bases.OpenRecordset(Cons)
Fin = Me.Fecha_I
Ter = Me.Fecha_T
Cons = "select * from ventas " _
& "WHERE fecha_inicio <= " & "#" & Format$(Fin, "mm/dd/yyyy") & "#" _
& " And fecha_Termino >= " & "#" & Format$(Ter, "mm/dd/yyyy") & "#" & " "
Set Rec = Bases.OpenRecordset(Cons)
Valora esta pregunta


0