Yes I am aware my indentation is strange. I am not a very good programmer lol. I just do things in a way that seems logical in my head. Which often seems stupid for everyone else. Thanks for your tip on where to put the error trapping statements. I should be able to figure it out now.