+ Reply to Thread
Results 1 to 4 of 4

Query sort not sorting...

  1. #1
    Forum Contributor
    Join Date
    04-21-2010
    Location
    Canada
    MS-Off Ver
    Office 2013
    Posts
    120

    Query sort not sorting...

    Not a game breaker by any means, but anoying none the less. I have a set of data that tracks keywords, which is also grouped into key groups. The table is formated as such:

    ID : autonumber (key field)
    KeyGroup : the group name the keyword belongs to
    Keyword : the actual keyword.


    for instance a bit of the table looks like this:

    ID______KeyGroup__________Keyword
    3............Actions.....................Cleaning Up
    23..........Buildings - Exterior.....Airports
    48 Animals....................Amphibians
    227 Chemicals.................Biochemicals

    and so on for about 400 records. I have made a drop down (combo box) to do a look up of the various Keywords in this table. Since the data is put into this table randomly (meaning not alphabetically) it would be nice to have it sorted. So I created a query base on this table, and set it to Sort Assending on the Keyword field. I run the query, but it does not sort it alphabetically based on the Keyword field. It does some kind of sorting, because viewing the ID column, they are no longer in any sequential order, but (such as with the above 3 records) Biochemials is at the top. Amphibians is about 15 entries down with other words like Inorganic, Monomers, Natural Gas Liquids and more above it. I would understand if it was sorting based off of the other fields, but as with Amphibians, all three fields come before the three fields for ID 227...

    Any ideas why this is not sorting?
    Last edited by jik_ff; 03-20-2014 at 04:53 PM. Reason: solved

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    23,958

    Re: Query sort not sorting...

    See if this helps. If not, post back with a sample data base so it can be analyzed. I suspect that it is sorting on a field other than the keyword field. Also are you doing the lookup in a table or in a form. It should be in a form. Never do a look up in a table.

    http://www.datapigtechnologies.com/f...combobox1.html

    Why you shouldn't do lookups in a table.

    http://access.mvps.org/access/lookupfields.htm
    Last edited by alansidman; 03-20-2014 at 04:01 PM.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Contributor
    Join Date
    04-21-2010
    Location
    Canada
    MS-Off Ver
    Office 2013
    Posts
    120

    Re: Query sort not sorting...

    Big face palm on my part. Looks like when I imported the table, some of the data had a space in the front.

    Sorry for wasting your time...

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    23,958

    Re: Query sort not sorting...

    No worries. Glad you have solved it.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Query Multiple Web Pages> Sort For Specific Criteria > Save Lists of Sort in txt files
    By Tlandress in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 01-15-2013, 12:09 AM
  2. Sort In Query
    By Indikirt in forum Access Tables & Databases
    Replies: 1
    Last Post: 12-10-2010, 05:11 PM
  3. Custom Sorting Query
    By andrewc in forum Excel General
    Replies: 1
    Last Post: 10-13-2009, 08:52 AM
  4. Sorting/Numbering query
    By creationracing in forum Excel General
    Replies: 1
    Last Post: 03-21-2007, 05:57 PM
  5. Replies: 0
    Last Post: 05-15-2006, 06:55 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1