Home

How to Query an Access Database Table in Excel 2010

|
|  Updated:  
2016-03-26 21:15:18
Excel Sales Forecasting For Dummies
Explore Book
Buy On Amazon

Excel 2010 can import data from an Access 2010 database table into a worksheet, a process known as making an external data query. After importing the data into Excel, you can then use the Filter buttons attached to the various fields to sort and filter the data as in an Excel table.

To make an external data query to an Access database table, follow these steps:

  1. In Excel, click the From Access button in the Get External Data group on the Data tab.

    Excel opens the Select Data Source dialog box.

    Access database tables are not the only external data sources on which you can perform external data queries. To import data from other sources, click the From Other Sources button on the Data tab to open a drop-down menu with several other options.

  2. Select the Access database file containing the table you want to import, and then click Open.

    The Select Table dialog box appears (unless the database contains only one table).

  3. Select the name of the Access data table that you want to import into the worksheet and click OK.

    The Import Data dialog box appears.

    Specify how and where to import the Access data in the Import Data dialog box.
    Specify how and where to import the Access data in the Import Data dialog box.
  4. Select the desired options in the Import Data dialog box.

    This dialog box contains the following option buttons:

    • Table to have the data in the Access data table imported into an Excel table in either the current or a new worksheet.

    • PivotTable Report to have the data imported into a new pivot table that you can construct with the Access data.

    • PivotChart and PivotTable Report to have the data imported into a new pivot table with an embedded pivot chart that you can construct with the Access data.

    • Existing Worksheet (default) to have the data in the Access data table imported into the current worksheet starting at the specified cell address.

    • New Worksheet to have the data in Access imported into a new worksheet that's added to the beginning of the workbook.

  5. Click OK.

    The imported data from the specified Access table appears in the worksheet.

    A worksheet after importing an Access data table.
    A worksheet after importing an Access data table.

Excel keeps a list of all the external data queries you make so that you can reuse them to import updated data from another database or Web page. To reuse a query, click the Existing Connections button on the Data tab to open the Existing Connections dialog box. Click the name of the query to repeat and click Open.

About This Article

This article is from the book: 

About the book author:

Greg Harvey is a language scholar who has traced the roots of Tolkien’s work in European folklore and pre-Christian religious beliefs. He has studied 12 languages, including Elvish, Latin, and Anglo-Saxon.