Thanks so much I tried that before and it didn't work but then i rebuilt the entire script and now it works like a charm.