You could also create a string contianing the relevant SQL statement and then have one of the SQL-related UDFs execute the statement.
_________________________
There are two types of vessels, submarines and targets.