thank you to everyone that answered my query. I ended up using the GetObjectOU from Glenn's website and it worked a treat

Regards
John \:\)