Results 1 to 3 of 3
  1. #1
    sc6678 is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    Dec 2016
    Posts
    1

    Most Recently Dated Record

    I have two tables- Facilities and Inspections. Each Inspection record relates to one facility, but a single facility may have many inspections. Each inspection has a Date of Inspection Field. I'd like to create a field on the facility record that shows the date of the most recent inspection. I'm a novice Access user, but it seems like it should be do-able, I'm just not sure where to start. Any ideas on how to do this? Thanks in advance!

  2. #2
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2013 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Calculated fields are not stored on tables, they are recreated when they are needed. To find the most recent date, create a query and click on the totals icon on the top. You will then Group By the facility and do Max of date.

  3. #3
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,474
    Also maybe try using DMax function when you need this value and not storing anything in tblFacility as aytee111 said. Something like:

    me.LastInspectDate = DMax("[InspectionDate]", "tblInspections", "[FacilityID] = " & Me.FacilityID)

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

Similar Threads

  1. Replies: 14
    Last Post: 06-03-2015, 06:53 PM
  2. VBA to create dated backup file
    By phbryan in forum Programming
    Replies: 2
    Last Post: 03-30-2015, 04:51 PM
  3. Replies: 6
    Last Post: 01-16-2015, 02:05 PM
  4. Schedule a Future Dated Transaction
    By burrina in forum Forms
    Replies: 21
    Last Post: 12-27-2012, 06:16 PM
  5. Replies: 1
    Last Post: 01-09-2012, 05:06 PM

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