Most of the applications you create require only a subset of database records. The Querydef object represents a query you create and execute, or use to create a recordset, filtering and sorting records as desired. You can also create and execute action queries and SQL pass-through queries.