Thanks Bo_Ry for that, it's the closest and has allowed me to get what I need.

Thanks to everyone that took the time to post, I'm sure many of these solutions were useable, but my own knowledge shortfalls have gotten in the way of my understanding :-(