Hi Sam
>Hi Naomi,
>
>I use it this way...
>
>
>SUM(IIF(weekdays(oPoEntry.daterecv, oMst.CURDUE_10) < m.lcTolerance, 1, 0)) as oTime
>
>
m.lcTolerance should not be a numeric variable according to standard naming conventions. It should be m.lnTolerance.