You can use the @ERROR codes to check whether the object creation and parameter assignments were successful. See also the UDF Forum, e.g. DBCommand() - Executes a SQL statement and returns a recordset if applicable
_________________________
There are two types of vessels, submarines and targets.