Thanks, Scott and David, for all your great suggestions. There's a lot to learn from your postings and I plan to rewrite the code and run it again. --Sandy