That would be impossible to diagnose without seeing the rest of the function... Even then, the problem may or may not be with the function - it could be with how you're calling it and/or how you're interpreting whatever it returns.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|