Thanks to all. Problem solved combining the different solutions, probably inelegant but does the job cheers E -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.wellylug.org.nz/pipermail/wellylug/attachments/20150324/4af15077/attachment.html>