I usually don't post any code without testing with real data.
Here's another simple version. Often performance is not a problem and keeping the code simple makes it easy to debug and prevents accidental mistakes.
Message Edited by altenbach on 03-25-2007 01:37 AM