Ver Mensaje Individual
  #3  
Antiguo 22-08-2014
wilcg wilcg is offline
Miembro
 
Registrado: abr 2014
Posts: 107
Reputación: 11
wilcg Va por buen camino
pacopenin, Gracias por tu aporte el codigo que do asi.

Código SQL [-]
 with Query do
    begin
      SQL.Clear;
      SQL.Add('Select * from pagos');
      SQL.Add('where codventa = ' + QuotedStr(edtCodigo.Text));
      SQL.Add('and f_venta = ' + QuotedStr(FormatDateTime('yyyy/mm/dd',edtFVdenta.Date))) ;
      SQL.Add('and f_pago between ');
      SQL.Add(QuotedStr(FormatDateTime('yyyy/mm/dd',edtDesde.Date)));
      SQL.Add('and '+QuotedStr(FormatDateTime('yyyy/mm/dd',Date)));
      SQL.Add('Order By f_pago desc');
      Open;
    end;
Responder Con Cita