DBOpen

Function:

Runs a query on the database and puts the result in the recordset previously declared with DBResult.

Syntax:

DBOpen <Name of the recordset> "<SQL query>"

Example:

DBOpen myRecordset "SELECT * FROM Users ORDER BY Username"