ok, I'm near to the solution.
It didn't workbefore because the WA validation code was above the recordset code.
Now I moved the recordset code below the WA validation code and now it works.
The only thing that I would like to make it work is to display MINDATE and MAXDATE in the validation error message.
I simply put the binding from the recordset in the error message, but it displays empty).
Tony