Thanks for your input... I should point out that this code was 'lifted' from the manual entry explaining 'pipe'. I couldn't understand how it worked hence the reason why I posted it. I wouldn't even consider doing it this way I just wanted to know how it worked... Thanks, Dan.