Ver Mensaje Individual
  #1  
Antiguo 15-03-2015
wilcg wilcg is offline
Miembro
 
Registrado: abr 2014
Posts: 107
Reputación: 11
wilcg Va por buen camino
Filtrar registros entre 2 fechas

Hola amigos, necesito solucionar este problema.

Código Delphi [-]
    with Query1 do
    begin
      SQL.Clear;
      SQL.Add('Select * from ventas');
      SQL.Add('where fecha_venta between ');
      SQL.Add(QuotedStr(FormatDateTime('yyyy/mm/dd',txtFinicio.Date)));
      SQL.Add('and '+QuotedStr(FormatDateTime('yyyy/mm/dd',txtFfin.Date)));
      SQL.Add('Order by codigo desc');
      Open;
    end;

estoy usando este codigo para filtar los registros que se encuentran dentro de 2 fechas y mostrarlos en un DBGrid, en postgreSQL funciona perfecto, pero en sqlite no funciona hay alguna mejor solucion para sqlite?.
Responder Con Cita