It looks like I've fixed the problem.
The Selcet/case Statement was correct, but I had a wrong declared POST parameter in the recordset filter. The empty recordset case has been cover by "if recordset is not empty" condition.
Thanks for your help, support from WA is really great and I'm looking forward to the next versions of your software.