Your right, it does sound pretty similar to my problem. In my experience, using a switch statement is one way of solving it.
Im not entirely sure if you should put the code in your querie or in the SQL code behind your combo box (id imagine the latter, if this is the case you will have to...