Código Delphi [-] With numero do begin close; sql.clear; SQL.Add('select max(factura)+1 as sig from facturas'); open; End;
With numero do begin close; sql.clear; SQL.Add('select max(factura)+1 as sig from facturas'); open; End;