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;