I got this to work. I just had this line of code in the wrong place. Thank you very much for your help.