An interesting approach, but possibly a bit of an overkill in this case given that it has to invoke an instance of Excel to do what is essentially a trivial operation.
Still your post provides a very good example of how easy it is to interface to Excel from Access, and utilise its function set. For this, I'm happy to give you a star. Cheers,
Steve Lewy
Solutions Developer
steve@lewycomputing.com.au