You can use the Logger() UDF which addresses this issue..

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's