That works like a charm, thanks a lot. Just out of interest, do you think its a good idea to go through and make sure i’m using up to date function calls? I’m sure i’m using other depreceated code. If so whats the best way to identify the up to date functions as i obviously had trouble with this one?
Thanks again for the help.