in reply to building combo box
In addition to what the others said, you don't want to use == for comparing strings. == is for numerical comparison; eq is for strings. If you had warnings on, you would see "Argument "d" isn't numeric in numeric eq (==)..." in your error logs.