Results 1 to 10 of 10
  1. #1
    djclntn is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    476

    Open to Last Record


    I know how in a Form you can have it open up to a new Record. With queries, can/how you have a query open up to the last Record?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,962
    Maybe set ORDER BY Desc?
    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
    djclntn is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    476
    Sorry June, I don't follow you. In the query Properties, ORDER BY either has a 'yes' or a 'no'.

  4. #4
    djclntn is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    476
    Wait June, disregard the last thread. I found ORDER BY in the Properites. 2-things happenned, it asked for a desc Parameter value & when I just clicked ok I didn't get all of the Records in vreturned

  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,962
    Use the Sort row in the query grid instead of the Properties dialog. Select Ascending or Descending under the field or fields you want to control the sort order. Rearrange the fields used in Sort to determine the heirarchy of sort.
    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.

  6. #6
    djclntn is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    476
    Again I'm sorry, I don't see how that's doing what I want. Are you more or less telling me that similar with Forms. Queries cannot be set to OPEN on the LAST Record?

    Catch up with you tom...

  7. #7
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,962
    If the form has a RecordSource with sort criteria specified, that's what the form should show when it opens. Form and Report also have an OrderBy property that can be used to define sort order. Depending on the field, this will not necessarily be the last record entered. If the sort is done on the unique ID field (such as the Autonumber) then the last record entered should be the first record in a descending order.
    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.

  8. #8
    djclntn is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    476
    Throughout today I pondered on if I should pursue this thread/question. Please, it’s not you who doesn’t understand, but most likely ME. 2-things which was in your last thread has me concern as to whether or not we’re on the same wave length. 1) You were making references to Forms & Reports when my question is specifically regarding Queries – can QUERIES be formatted to when upon opening it’s at the last Record –or- is this only done with Forms & Reports? 2) Yea, I could use sort descend to bring the last Record to top (first Record), but I have reasons why I’m not taking that route.

    I hope that I’m not being too direct with you; I don’t mean to be.

  9. #9
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,962
    Regarding query: You can maybe filter so only the last record is returned. As stated earlier, that depends on the field used for the criteria. And would require a subquery or domain aggregate expression as filter criteria. Otherwise, there are no properties of query that can be set to control 'opening' to last record.
    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.

  10. #10
    djclntn is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    476
    ok...thanks

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

Similar Threads

  1. Open Specific Record
    By halfaguava in forum Forms
    Replies: 1
    Last Post: 06-09-2011, 04:08 PM
  2. Open record from a subform
    By pratim09 in forum Forms
    Replies: 1
    Last Post: 04-28-2011, 12:01 AM
  3. new record open form
    By tubar in forum Forms
    Replies: 5
    Last Post: 03-31-2011, 12:33 PM
  4. If record does not exist, open add new record form
    By RobertIngles in forum Programming
    Replies: 2
    Last Post: 02-01-2011, 08:47 AM
  5. On Open to certain record
    By jlclark4 in forum Reports
    Replies: 6
    Last Post: 01-19-2011, 01:08 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