> set filter to periode = jaar.periode .and. datum = cdow(dDatum)
>
>jaar.periode is numeric and dDatum is a date
>I got the error Operator/Operand type mismatch
That's because CDOW() returns a string, so you are attempting to compare a date with a string.
Why are you trying to use CDOW()?
Sylvain Demers