Celine.meneu 16 years ago
parent
commit
c0e13d43e6

+ 1 - 1
CG67.FicheCollege.root/CG67.FicheCollege/Core/CG67.FicheCollege.Entrepot/EntrepotInvestissement.cs

@@ -21,7 +21,7 @@ namespace CG67.FicheCollege.Entrepot
                     using (SqlCommand command = connexion.CreateCommand())
                     {
                         //on récupère les ATC.
-                        command.CommandText = "Select * from InvestissementImmo Where CodeRNE = @RNE AND Annee = @Annee";
+                        command.CommandText = "Select * from InvestissementImmo Where CodeRNE = @RNE AND Annee >= @Annee";
                         command.Parameters.AddWithValue("@RNE", codeRNE);
                         command.Parameters.AddWithValue("@Annee", annee);
                         using (SqlDataReader dr = command.ExecuteReader())