Hi Thank you so much. It makes perfect sense. I actually tried the second suggested syntax before posting here but it was inside of my actual code which probably had another problem. The suggested solution works perfectly. thanks again