diff --git a/App_Code/ClsAcumuladores.vb b/App_Code/ClsAcumuladores.vb index b14e03dfe..b041ab359 100644 --- a/App_Code/ClsAcumuladores.vb +++ b/App_Code/ClsAcumuladores.vb @@ -1197,7 +1197,7 @@ Public Class ClsAcumuladores Public Function GetAñosVentas(CveEmprea As Integer) As Boolean Dim Retorno As Boolean = False - SqlDataAdapter(String.Format("select year(Fecha) as Año from Ventas where CveEmpresa = {0} group by year(Fecha) Order by year(Fecha)", CveEmprea.ToString), CommandType.Text) + SqlDataAdapter(String.Format("select top 6 year(Fecha) as Año from Ventas where CveEmpresa = {0} group by year(Fecha) Order by year(Fecha) desc", CveEmprea.ToString), CommandType.Text) Try SqlAdapter.Fill(Data)