Results 1 to 9 of 9
  1. #1
    BSJoJaMAx4's Avatar
    BSJoJaMAx4 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2015
    Posts
    48

    Display 5 last records on a main menu


    Hi - just wondering, as well as menu items is it possible to show the last 5 items entered into the database on the main screen?

  2. #2
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    last 5 is relative....
    sort in reverse and query the top 5
    or
    query on the last 5 indexes

  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,870
    Tell us about the records being saved. Is there a date/time stamp? There is no inherent Order to records in a table. If you want an Ordered list, you will need a field that represents "whatever LAST means to you", then use a query with an Order By.

  5. #5
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    If the primary key is an auto number you can just use that to find the latest I was thinking.

  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,870

  7. #7
    BSJoJaMAx4's Avatar
    BSJoJaMAx4 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2015
    Posts
    48
    Hi all - thanks so much for your help. I got it to work by creating a new form, adding it as a sub form to the main menu, and tinkering with the sort order (by ID - autonumber) and limiting to number of records displayed.

  8. #8
    BSJoJaMAx4's Avatar
    BSJoJaMAx4 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2015
    Posts
    48
    One other question. I have a table called exiting staff data and a field called Follow up required. I want to count the number of Yes entries and display it on the main menu. Have tried all sorts of permutations but keep getting error messages. Any thoughts?

  9. #9
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    Hey, sorry for the late reply,

    http://stackoverflow.com/questions/1...a-form-control

    you need a query to gather the 'yes' records then just count them and display in a text box.

    I'm guessing you solved this issue by now though.

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

Similar Threads

  1. Main menu page
    By DianneBeck in forum Misc
    Replies: 3
    Last Post: 06-02-2015, 07:00 PM
  2. Main Menu
    By MarkV in forum Access
    Replies: 3
    Last Post: 12-07-2014, 09:57 PM
  3. Replies: 2
    Last Post: 04-30-2013, 07:55 PM
  4. Replies: 16
    Last Post: 02-13-2012, 03:32 PM
  5. Main Menu and Sub Menus
    By REngelbr in forum Access
    Replies: 0
    Last Post: 08-25-2009, 03:51 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