Results 1 to 2 of 2
  1. #1
    tagteam is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    494

    Field in table that is latest record in another table

    Is there a way to create a field in table 1 that is the latest record in table 2? I have a car database that tracks car information in table 1 and tracks leases in table 2. I would like to add about 5 fields to table 1 from table 2 to but I want those field to be the latest lease record information for that car.



    The main reason I am doing this is I would like to be able to use the filter to find all the cars with leases expiring this year so i need to be able to use the value in a filter and if that wont work then it will be kind of pointless for me.
    Thanks

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    Not a good idea. Use query to retrieve the 'latest' date record. Review: http://allenbrowne.com/subquery-01.html#TopN
    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.

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

Similar Threads

  1. Replies: 1
    Last Post: 09-01-2013, 09:46 PM
  2. Replies: 5
    Last Post: 03-01-2012, 12:59 AM
  3. Replies: 3
    Last Post: 08-26-2011, 12:11 PM
  4. How to fetch latest records from table
    By India62 in forum Access
    Replies: 13
    Last Post: 05-19-2011, 11:43 PM
  5. Code to display latest record number field created?
    By rowardHoark in forum Programming
    Replies: 1
    Last Post: 01-31-2011, 08:03 AM

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