(iif(month(date()) > 7,at( alltrim(str( year(date()) )),substr(ELEVES.ANNESCOL,1,4))#0 ,at( alltrim(str( year(date()) -1 )),substr(ELEVES.ANNESCOL,1,4))#0 ) ) .and. ELEVES.PERISCO ="A" .AND. ELEVES.REDUC2ENF ="O"