Results 1 to 6 of 6
  1. #1
    tatihulot is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    60

    How to Display Last Record Entered when Opening .accdb File?

    With Access 2013, how do you configure it so that when it opens a database, it displays the last record entered in a form? It is displaying the first record in the form when I open it.



    I want Access to do this when I double-click the .accdb file. Thank you!

  2. #2
    amrut is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    Dubai
    Posts
    614
    See http://msdn.microsoft.com/en-us/libr...ice.12%29.aspx
    Use acLast option and put the code in the form's Open event

  3. #3
    tatihulot is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    60
    I'm a newbie and have never worked with code. Is there a simple tutorial that will guide me through this?

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,747
    If you record a DateEntered or something similar when you create a record, you can have your form based on a query that uses the Max(DateEntered) to get your desired record.
    For vba tutorials see http://www.functionx.com/vbaccess/index.htm

  5. #5
    tatihulot is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    60
    As a matter of fact, yes, I do have a Date Entered field.

    Now I just have to figure out how to set up a query so that it will open to the very last record.

    I'm wondering if I need a time stamp as well, since I'm entering records all day long, and would I have to do the query based on a time stamp? Or would that be overcomplicating this?

  6. #6
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,747
    You need some date/time info that you can use to determine "Last". It isn't overcomplicating if you can have multiple records entered on any given Date.

    Goo luck

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

Similar Threads

  1. Replies: 6
    Last Post: 05-29-2013, 11:47 AM
  2. Replies: 6
    Last Post: 01-07-2013, 06:41 PM
  3. Accdb file differences running xp or Win7
    By 123seven in forum Access
    Replies: 1
    Last Post: 04-24-2011, 10:45 AM
  4. problem opening .mdb file
    By honeybee in forum Access
    Replies: 7
    Last Post: 06-25-2010, 11:33 AM
  5. Value List with opening a file.
    By seaper in forum Forms
    Replies: 0
    Last Post: 10-21-2009, 01:32 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