Results 1 to 8 of 8
  1. #1
    AccessFanatic is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2017
    Posts
    3

    Controlling the order of query results

    I am using a query to extract specific records (sales orders in this case) which are input via the use of a set of 12 brackets in the Sales Order Number field. Once I have finished inputting the 12 SOs which I wish to extract the query result always list them in either ascending or descending numerical order.



    I wish them to appear in the order in which the SO numbers were input.

    Any suggestions?

    Thanks!

  2. #2
    andy49's Avatar
    andy49 is offline VIP
    Windows 10 Access 2007
    Join Date
    Nov 2016
    Location
    London
    Posts
    1,051
    How are they stored in the table which might help? Date logged field? An autonumber field?


    Sent from my iPhone using Tapatalk

  3. #3
    AccessFanatic is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2017
    Posts
    3
    They are actually coming from a dBaseIII file. The SO number field is an indexed text field.

  4. #4
    andy49's Avatar
    andy49 is offline VIP
    Windows 10 Access 2007
    Join Date
    Nov 2016
    Location
    London
    Posts
    1,051
    So (sorry to appear repetitive), is there a field you could pull into the query as an ascending order.


    Sent from my iPhone using Tapatalk

  5. #5
    AccessFanatic is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2017
    Posts
    3
    Why would I want to do that? I am trying to avoid a pre-set ascending or descending order. The numbers I input for the extraction are in a random order. That is the order in which I want the query result to be.

  6. #6
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    input via the use of a set of 12 brackets
    What does this mean - are the SO's entered in one long string or is it one SO per record? Please provide a sample of the data as it is entered and as you wish to see it.

  7. #7
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,511
    Maybe add an EnteredDateTime field to table and default to Now() in table. Then pull that field into query and sort on that.

  8. #8
    jwhite is offline Competent Performer
    Windows 10 Access 2013 32bit
    Join Date
    Dec 2012
    Location
    North Carolina
    Posts
    349
    Sounds like the OP has a field with a value like "[01] [23] [24] [52]" or such, but we can't assist further until the OP gives us example data as aytee111 requested.

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

Similar Threads

  1. Replies: 2
    Last Post: 03-07-2016, 05:02 PM
  2. Replies: 1
    Last Post: 06-15-2015, 06:11 AM
  3. Replies: 3
    Last Post: 04-08-2014, 10:38 PM
  4. Replies: 6
    Last Post: 05-14-2012, 07:24 AM
  5. Query results order
    By Costa in forum Queries
    Replies: 6
    Last Post: 02-24-2010, 06:07 AM

Tags for this Thread

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