Results 1 to 7 of 7
  1. #1
    Helix51 is offline Novice
    Windows 8 Access 2013 64bit
    Join Date
    May 2019
    Posts
    2

    Query Result - Bottom row moves to the top, each row moves one down

    Hello,



    I'm using Access 2013, getting familiar with the program and hoping to get some advice. I have created a simple database with one table, form and query. The table holds names and basic information about each client. I set the form to view the different records, as well as creating new entries. Finally, I'm trying to set-up the query so that each time I open it, each row moves down one and the bottom moves to the top (is there a term for this?). I don't want it randomized.

    1) How can I set it up so that each time I open the query, each row moves down one and the bottom moves to the top?

    2) When I add a new entry, how can I do it where it would show up as the top row?

    Thank you in advance and if possible, please answer very simple as I'm not familiar with MS Access terminology.

  2. #2
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,800
    1) you cannot, if I understand the question - with one exception.
    2) records are sorted on some field, such as a date. You cannot have all the records in one query sort by date from old to new for example, but have the newest first. That doesn't follow any logical/conventional sort order.

    In truth, it should not matter. Queries are for gathering data and presenting in some logical order, but what could be the reason for your quest?

    The exception I alluded to would be a UNION query.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    You can sort records by newest to oldest but the New Record row will always be at the end. Enter new record, commit to table, refresh the form - the new record will be at top.
    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.

  4. #4
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,977
    You could perhaps fake this effect with two subfoms A and B.
    Subfom A jut shows one record - the newest one.
    Subform B shows all the others using your preferred sort order.
    Place A immediately above B on the main form and give both subforms a transparent border.

    However, whilst possible, is it really worth the effort?
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  5. #5
    Helix51 is offline Novice
    Windows 8 Access 2013 64bit
    Join Date
    May 2019
    Posts
    2
    Quote Originally Posted by Micron View Post
    1) you cannot, if I understand the question - with one exception.
    2) records are sorted on some field, such as a date. You cannot have all the records in one query sort by date from old to new for example, but have the newest first. That doesn't follow any logical/conventional sort order.

    In truth, it should not matter. Queries are for gathering data and presenting in some logical order, but what could be the reason for your quest?

    The exception I alluded to would be a UNION query.
    I guess the best example would be like food options. Ten restaurants, constantly rotating. This would be the idea.

    Is there an alternative to this?

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    Record date restaurant visited. Next restaurant to visit will be record with oldest visit date.
    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
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,977
    You have 2 options as already given by micron and myself.
    Union query or two subforms.
    Both involve a similar idea. Separate the data into two groups with the latest record in one group and the rest in the other.
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

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

Similar Threads

  1. Replies: 1
    Last Post: 03-01-2016, 11:49 AM
  2. Not In List Moves To Next Record
    By Derrick T. Davidson in forum Programming
    Replies: 2
    Last Post: 01-16-2016, 12:46 AM
  3. mouse cursor moves automatically
    By azhar2006 in forum Access
    Replies: 3
    Last Post: 09-29-2014, 02:02 PM
  4. Query moves - Last location of tube
    By pault in forum Queries
    Replies: 5
    Last Post: 09-23-2013, 04:57 PM
  5. txtbox moves everything else down
    By cowboy in forum Access
    Replies: 2
    Last Post: 01-06-2010, 05:45 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