Yes, nice code clean up Handoko !
But if the OP's code fails to execute even the first 'if', there is something else wrong. (And no, its not as I suggested, combobox1.text does return the selected item, that surprises me, I expected it to return a string of all items, like TStrinList does).
But the case statement sure makes it easier to debug !
Davo