If you use DIM instad of GLOBAL for $objConn does it still complain about a duplicate definition? If not, that may be a bug.

Is $objConn used any other place in your code outside of what was posted? Like in a UDF? If it is, are you using GLOBAL $objConn inside a UDF? or subscript?
_________________________
Home page: http://www.kixhelp.com/hb/