You can add a reference to Excel (Tools / References in the VBA window) and
all of Excel's functions will be available to you. That may come in handy if
you have other mathematical issues in your DB.
--
Pete
This e-mail address is fake to keep spammers and their auto-harvesters out
of my hair. If you need to get in touch personally, I am 'pdanes' and I use
Yahoo mail. But please use the newsgroups whenever possible, so that all may
benefit from the exchange of ideas.