Given an ID for an ADO Connection object, which was created with AllocConnection, and a SQL select statement, this function returns an ADO RecordSet object with the results of that query.
Object is a reference to the Application object. For more information, see Application Object (page Application Object).
RunQuery is the command.
nID is the connection ID number.
strSQLStatement is the SQL select statement.