Thank you for all your help, I had my function in the wrong place. Echo statement now appears in new screen. Tom