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 />

Query Wizard: Sort order<br />

The third step of the query lets you specify how you want the records to be sorted (see Figure 33.8). This<br />

step is optional, and you can click Next to move to the next step if you don’t want the data sorted or if you<br />

prefer to sort it after it’s returned to your worksheet.<br />

For this example, sort by Category in ascending order. You can specify as many sort fields as you like. Click<br />

Next to move on to the next step.<br />

Query Wizard: Finish<br />

The final step of the Query Wizard, shown in Figure 33.9, lets you save the query so that you can reuse it.<br />

To save the query, click Save Query and then enter a filename.<br />

Select an option that corresponds to what you want to do with the returned data. Normally, you want to<br />

return the data to Excel. If you know how to use the <strong>Microsoft</strong> Query application, you can return the data<br />

to Query and examine it or even modify the selection criteria.<br />

For this example, select Return Data to <strong>Microsoft</strong> Excel and click Finish.<br />

FIGURE 33.8<br />

In the third step of the Query Wizard, you specify the sort order.<br />

FIGURE 33.9<br />

The final step of the Query Wizard.<br />

583

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

Saved successfully!

Ooh no, something went wrong!