Opening Access queries through ODBC

ODBC gives you more control over which parts of a database you can use. For this reason, using an Access query through ODBC may require a few extra steps.

To open an Access query through ODBC

  1. On the File menu, click Options.
  2. Click the Database tab.
  3. Ensure that the Views check box is selected.

    Selecting "Views" automatically displays any available queries in your Access database.

  4. In addition, you can specify Table name LIKE and Owner LIKE options, if you wish.
    • "Table name LIKE" is based on the SQL LIKE clause. This option allows you to specify the kinds of table names you want to appear in the Choose SQL Table dialog box. You can use the underscore character (_) or the percent sign character (%) as wildcards with this function. The underscore character specifies any single character, while the percent sign signifies any character string. For example, DAV_ matches DAVE only, while DAV% matches DAVE and DAVID. Table name LIKE C% displays only those tables that have a table name beginning with the letter C.

    • "Owner LIKE" is also based on the SQL LIKE clause. Owner LIKE allows you to select the Owner (or Creator or Alias) of the table, not the table name itself. For example Owner LIKE C% displays only those tables that have an owner beginning with the letter C.

  5. Click OK to exit the Options dialog box.
  6. Create a new report and choose ODBC as the data source for your Access database.
  7. Locate and select the data source that contains the Access query you want to use.
  8. Highlight your query in the Views folder, click the > arrow, and then click OK.

    The Design tab appears along with the Field Explorer dialog box. Your Access query, and all fields associated with that query, appear under "Database Fields."