Hello,
I tried a condition on a button's "DisplayMode" property, but I got the error "enum value was expected". But I need to do my comparison based on date as the code shows. Can you help me please? Thanks in advance
If(
First(Collection_Dates_De_Saisie).'Fin de mois' = "Avant";
Date(Year(Now()); Month(Now()) + 1; 01 - Int(First(Collection_Dates_De_Saisie).'Fin Révision')) <= Today();
Date(Year(Now()); Month(Now()) + 1; Int(First(Collection_Dates_De_Saisie).'Fin Révision'));
DisplayMode.Disabled;
DisplayMode.Edit
)