In this post, you made reference to a conditional select statement. I am having a similar issue and wonder if you might be willing to share?
http://www.scriptcase.net/forum/forum/developers/programming/3973-select-where-case-statement
Sry betty, I was completly unable to to work the last two years, sounds funny, and that it was 
Problem is still on? If yes I would need some time to get it again …
BR
Eric