What is
Code:

If $error=0


??

Should it not be -
Code:

If @error=0


??

Thanks,

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