If you decide to pursue holli's advice, you may find Implementing Dispatch Tables useful.
HTH,
In reply to Re: Case Statement by planetscape in thread Case Statement by phimtau123