Hi
Do you run the query in the report or outside the report?
You can do coding in a report then when passing to the p[arams of the report and based onthat to the query works fine even bbefore wd18 that worked ok for me
Coding in the report
PS
But if you do the right coding outside and connect the query or connect to an array ( that has the results ) then that should work as well
regards