Look at the code in WriteLog2() http://www.kixtart.org/cgi-bin/ultimatebb.cgi?ubb=get_topic;f=12;t=000188#000000

You will see how to use it. Or you can just use the UDF itself.
_________________________
Home page: http://www.kixhelp.com/hb/