Thanks Larry for the heads up and the info.
In thinking about my answer and how I could do a better job helping in the future I guess I got stuck on the request for a "function" and failed to see the bigger part of his question.
With what you posted it should be a simple matter to write a udf (do people still do that or would you put this in a class somewhere?) to slove the problem.
Thanks again, I VERY MUCH appreciate it!
Tom Gahagan
Alliance
Computer Solutions
"Music, like sex, is much too important to be left to professionals."
Robert Shaw