Alison Balteramp;#039;s Mastering Microsoft Office Access 1002003 [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Alison Balteramp;#039;s Mastering Microsoft Office Access 1002003 [Electronic resources] - نسخه متنی

Alison Balter

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید



Ordering Your Query Result


When you run a new query, notice that the query output appears in no particular order, but generally, you want to order it. You can do this by using the Sort row of the query design grid.

To order your query result, follow these steps:


  • In Design view, click within the query design grid in the Sort cell of the column you want to sort (see Figure 4.6).

    Figure 4.6. Changing the order of the query result.

  • Use the drop-down combo box to select an ascending or descending sort.


  • To sort in ascending order by the ContactTitle field, follow these steps:


  • In Design view, click in the Sort row of the query design grid for the ContactTitle field.

  • Open the Sort drop-down combo box.

  • Select Ascending.

  • Run your query and view the results. Your records should now be ordered by the ContactTitle field.

  • If you want to return to the query's design, click View on the toolbar.


  • Sorting by More than One Field


    Quite often, you want to sort your query output by more than one field. The columns you want to sort must be placed in order from left to right on the query design grid, with the column you want to act as the primary sort on the far left and the secondary, tertiary, and any additional sorts following to the right. If you want the columns to appear in a different order in the query output, you must move them manually in Datasheet view after you run the query.

    Sort the query output by the Country field and, within individual country groupings, by the ContactTitle field. Because sorting always occurs from left to right, you must place the Country field before the ContactTitle field. Therefore, you must move the Country field. Follow these steps:


  • Select the Country field from the query design grid by clicking the thin gray button above the Country column.

  • After you have selected the Country field, move your mouse back to the thin gray button and click and drag to the left of ContactTitle. A thick gray line should appear to the left of the ContactTitle field.

  • Release the mouse button.

  • Change the sort of the Country field to Ascending.

  • Run the query. The records should be ordered by country and, within the country grouping, by contact title.



  • / 544