You cannot just print out an array as in Code:

? $Recordset


Alos, why do you create a separate recordset?
Try this:
Code:

$ConnDSN = 'DRIVER={MySQL ODBC 3.51 Driver};SERVER=localhost;DATABASE=ncives;USER=test;PASSWORD=test;OPTION=3;'

$sql = 'SELECT * FROM workst'
? 'SQL = '+$sql

$recordset = DBCommand($ConnDSN,$sql)
? 'Error '+@ERROR+' - '+@SERROR

for $row=0 to ubound($recordset,1)
for $column=0 to ubound($recordset,2)
? 'Field(row='+$row+', column='+$column+') ='+$recordset[$row,$column]
next
next


Finally, sprinkle the UDF itself with error checks and step through it via DEBUG ON to see why it fails.
_________________________
There are two types of vessels, submarines and targets.