18.11.2014 Views

Microsoft Office

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Using <strong>Microsoft</strong> Query with External Database Files 33<br />

Working with Data Returned by Query<br />

Excel stores the data that Query returns in either a worksheet or a pivot table. When Excel stores data in<br />

a worksheet, it stores the data in a table that’s a specially named range known as an external data range;<br />

Excel creates the name for this range automatically. In this example, the external data range is named<br />

Table_Query_from_Budget_Database.<br />

You can manipulate data returned from a query just like any other worksheet range. For example, you can<br />

sort the data, format it, or create formulas that use the data.<br />

The following sections describe what you can do with the data that Excel receives from Query and stores in<br />

a worksheet.<br />

Adjusting the external data range properties<br />

You can adjust various properties of the external data range by using the External Data Properties dialog box<br />

(see Figure 33.12).<br />

To display this dialog box, the cell pointer must be within the external data range. You can open this dialog<br />

box by using either of three methods:<br />

n Right-click and choose Table ➪ External Data Properties from the shortcut menu.<br />

n Choose Data ➪ Manage Connections ➪ Properties.<br />

For more settings (applicable for advanced users), click the Properties icon, which is directly to the right<br />

of the Name box in the External Data Properties dialog box. Excel displays the Connection Properties<br />

dialog box.<br />

FIGURE 33.12<br />

The External Data Properties dialog box enables you to specify various options for an external data range.<br />

Refreshing a query<br />

After performing a query, you can save the workbook file and then retrieve it later. The file contains the data<br />

that you originally retrieved from the external database. The external database may have changed, however,<br />

in the interim.<br />

585

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!