Results 1 to 3 of 3
  1. #1
    Silver Lounger
    Join Date
    Dec 2000
    Location
    California, USA
    Posts
    1,758
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Queery Results in Ascending Order (03)

    Is it possible to have a query that first sorts by field_1 and then by field_5?

    Thanks,
    John

  2. #2
    Silver Lounger
    Join Date
    Dec 2000
    Location
    California, USA
    Posts
    1,758
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Queery Results in Ascending Order (03)

    Found it.

    Add this to the SQL-
    ORDER BY [QueryResult].Field_1, [QueryResult].[Field_2];

    Regards,
    John

  3. #3
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Queery Results in Ascending Order (03)

    Yes. Set Sort to Ascending for both columns. Make sure that field_1 is to the left of field_5 in the query grid.
    If you want to sort on a field that you don't want to include in the fields returned by the query, you must still add it to the query grid. Clear its Show check box.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •