Below are some links that should be helpful.

How to use UDFs
DBConnOpen() - Open a connection to a database using ADODB
DBExecuteSQL() - Executes a SQL command on a database
DBGetRecordset() - Retrives a recordset from a database as the result of a SQL query
_________________________
Home page: http://www.kixhelp.com/hb/