in reply to Case Statement
If you decide to pursue holli's advice, you may find Implementing Dispatch Tables useful.
HTH,