Rich,
Thanks for your reply, I have not tried it yet but I suspect that what you say should work fine. What I am actually doing is clicking a button to open the second form and then in that code clicking a button on the second form so in theory the form is open already. I'll give it a try and see.