Thanks to both of you for the fast replies.
I used Kyle's great example and made a form tool.
Funny how you can use something for so many years and still not have a clue what it's capable of.