Results 1 to 7 of 7
  1. #1
    snowboarder234's Avatar
    snowboarder234 is offline Competent Performer
    Windows XP Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    243

    Cannot perform alpha sort for lookup field.

    I have a table containing book publishers in a lookup field and had no trouble alpha sorting it by just using the A-Z Ascending command under the home tab.

    I have another lookup field for book call numbers. This one was created in the field properties tab in design view. I don't seem to be able to alpha sort this one. Any help/information is appreciated.


    Click image for larger version. 

Name:	propertiesTab.JPG 
Views:	16 
Size:	18.4 KB 
ID:	33896

    Ignore the below -- I got a message that said my post was too short:


    Getting a warning that says my message is too short so, la de da de da etc. wojfsljdfslkjfew0j sjdflskd we90weurosmm sljfwo9ejfldjf
    This message is too short, this message is too short.

    Click image for larger version. 

Name:	snip.JPG 
Views:	15 
Size:	50.9 KB 
ID:	33897

  2. #2
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,742
    Why not make the row source shown a select query from the publishers' table?

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Please tell us more about this
    The second lookup field is in a table, but was created in the field properties tab in design view.
    I think I agree with davegri, but I'm confused with the "lookup field".
    Perhaps you can show us more of the design to help with context --I'm not sure how the pieces fit together in your proposed design.

  4. #4
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,425
    I don't seem to be able to alpha sort this one
    Because it's Alphanumeric, yes? So to simplify, CA303 comes after CA1234 when the latter is a larger number. If not, then please elaborate as requested, because sorting numbers in a text field will always produce undesired results. Your choices might be to split the alpha from the numeric (if they're not inter-mixed) or you'd need a sorting field of some kind.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  5. #5
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Nor irregardless --for most of us.
    We need more info if we are to offer more focused responses.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    Why extra quote marks following Santa Barbara and San Francisco? If this RowSource works, why did you post it? What does any RowSource have to do with sorting issue? Show sample data that has the issue.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #7
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,425
    That is part of the joke, silly! Neither is "ain't, to say nothing of the double negative.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. DMax +1 a field with alpha and numeric characters
    By beewerks in forum Programming
    Replies: 6
    Last Post: 02-12-2018, 05:06 PM
  2. Incorrect alpha sort on report & query
    By Dano in forum Reports
    Replies: 9
    Last Post: 12-14-2016, 08:57 AM
  3. Lookup Table Sort Sequence
    By jrmbach in forum Forms
    Replies: 3
    Last Post: 05-31-2014, 05:34 PM
  4. Replies: 1
    Last Post: 03-09-2014, 06:30 PM
  5. Table lookup, sort of
    By avarusbrightfyre in forum Programming
    Replies: 1
    Last Post: 08-30-2011, 02:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums