Thanks for all your help. I think i have it working the way i want it to now.