Half the fun of Access (Access is fun???) is finding out how most of this stuff actually works yourself. I've been looking (and learning) myself to the solution as this would be a great addition for something I'm writing at the moment.
The solution (using VBA, what can I say, I'm a code monkey)...