I could add that I am sure it is bombing at $rsRecordset=$cmdCommand.Execute() in the UDF. Back to the original issue which is to make use of wkix32 is there an older version of wkix32 that I could use that may get me around the problem? How about a way to include kix32 in the kixcrypt crytped file so it will run on its own.. possible?

code:
function DBExecuteSQL($objConn, $sql, optional $cmdType)
dim $cmdCommand, $rsRecordset
dim $adCmdUnspecified, $adCmdText, $adCmdTable, $adCmdStoredProc, $adCmdUnknown, $adCmdFile, $adCmdTableDirect

$adCmdUnspecified = -1
$adCmdText = 1
$adCmdTable = 2
$adCmdStoredProc = 4
$adCmdUnknown = 8
$adCmdFile = 256
$adCmdTableDirect = 512

if vartype($cmdType)
$cmdType=val($cmdType)
else
$cmdType=$adCmdText
endif

if vartype($objConn)<>9 or $sql=''
exit 87
endif

$cmdCommand = CreateObject('ADODB.Command')
if @ERROR
exit @ERROR
endif

$cmdCommand.ActiveConnection = $objConn
if @ERROR
exit @ERROR
endif

$cmdCommand.CommandType = $cmdType
if @ERROR
exit @ERROR
endif

$cmdCommand.CommandText = $sql
if @ERROR
exit @ERROR
endif

$rsRecordset=$cmdCommand.Execute()
if @ERROR
exit @ERROR
endif
$cmdCommand=''
$rsRecordset=''
$DBExecuteSQL=@ERROR

endfunction

_________________________
Austin Henderson