something like :

onerror("exit @error")
$objConn = CreateObject("ADODB.Connection")
$objConn.ConnectionTimeout = $ConnTimeout
$objConn.Open($ConnDSN)
endonerror

instead of

$objConn = CreateObject("ADODB.Connection") if @ERROR exit @ERROR endif
$objConn.ConnectionTimeout = $ConnTimeout if @ERROR exit @ERROR endif
$objConn.CommandTimeout = $CmdTimeout if @ERROR exit @ERROR endif
$objConn.Open($ConnDSN) if @ERROR exit @ERROR endif

[ 10 May 2002, 20:06: Message edited by: Radimus ]
_________________________
How to ask questions the smart way <-----------> Before you ask