Ver Mensaje Individual
  #2  
Antiguo 08-02-2005
lucianojdg lucianojdg is offline
Miembro
 
Registrado: dic 2003
Posts: 42
Reputación: 0
lucianojdg Va por buen camino
E problema es que debes cambiar el formato de fecha a 'mm/dd/aaaa'

La consulta quedaria de la siguiente manera:

form2.listafacturado.sql.Text := 'Select * from segchasis
where estado = ''facturado''
and fventa between #'+FormatDateTime('mm/dd/aaaa', StrToDate(edit1.text))
+'# and #'+FormatDateTime('mm/dd/aaaa', StrToDate(edit2.text))+
'# order by fventa desc';


Saludos
__________________
Luciano DG
Responder Con Cita