Thanks again formlesstree4. I guess I don't understand all this typing stuff yet. I edited the line as you have shown but now it's giving me "Object reference not set to an instance of an object." error message. I'm clueless and again thanks for your patience. If I can get this working it will be fine and another item I've learned the hard way.