You created syntax errors in the script therefore it would not run. If
you have many doctors then a woudl recommend using a different coding
technique - a Switch statement). This makes the coding much easier to
understand - this is not to say you cannot use if staement but it can
get prettty convuluted. The modifed sample shows how to do it using both
techniques. Have a look and decide which one works best for you.Paul