Results 1 to 4 of 4
  1. #1
    john3588 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Mar 2013
    Posts
    2

    Report sort order from list field

    I have a field that was populated from the following look-up list - Forcast/Concept;Sources Sought;Sources Sought Submitted;Awaiting RFP;Proposing;Submitted for Review;Drop;Won;Lost. I need to print a report in the following order:
    Forecast / Concept


    Sources Sought
    Sources Sought Submitted
    Awaiting RFP
    Proposing
    Submitted for Review.
    and the report excludes the last three in the list (drop - won - lost)
    Since the field data is being selected from a list and not a table I can't come up with a good way to sort the report for printing in the correct order. There is a second sort order by bid date after the sort criteria above is chosen. .

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Let x represent the field. Create a sort value field with expression in query:

    SortNum: Switch(x="Forecast/Concept",1, x="Sources Sought",2, x="Sources Sought Submitted",3, x="Awaiting RFP",4, x="Proposing",5 x="Submitted for Review",6)
    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.

  3. #3
    john3588 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Mar 2013
    Posts
    2
    Worked perfectly - did not know there was a "switch" function. Very nice.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    There is also a Choose function you might want to get familiar with.
    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.

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

Similar Threads

  1. Sort order with null values
    By Alsail77 in forum Access
    Replies: 23
    Last Post: 08-27-2012, 05:04 PM
  2. Sort order in a sub form
    By roar58 in forum Forms
    Replies: 1
    Last Post: 03-17-2012, 08:57 PM
  3. Sort order by Dlookup field
    By 1Giggles in forum Forms
    Replies: 1
    Last Post: 02-22-2012, 02:13 PM
  4. Report will order/sort 4 columns but not 5. Why?
    By TomHolden in forum Reports
    Replies: 6
    Last Post: 12-17-2011, 04:25 PM
  5. Multivalue field sort order
    By bdaun in forum Forms
    Replies: 0
    Last Post: 09-05-2011, 12:27 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