Results 1 to 3 of 3
  1. #1
    janmack79 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2016
    Posts
    30

    Update table based on Max date link

    Click image for larger version. 

Name:	Capture.PNG 
Views:	6 
Size:	19.4 KB 
ID:	28226



    Hi All,

    I am trying to update a field in my 1st table based on the remarks in a 2nd table. But in the 2nd table shown called Remarks I want to take the line with the Max Date in that table to update to the MK TBL MGMT Report Shell. What would I need to enter in the criteria line so it only pulls the row with the max date?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    you need 2 queries,
    Q1 to get the max date and ID:
    select Max(date),ID sort Desc

    Q2 will then use Q1 and data table to pull all records joined to Q1:
    select tData.* from tData,Q1 where tData.ID = Q1.ID

  3. #3
    janmack79 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2016
    Posts
    30
    Ok thought there might be a way to do it with in the 1st query but having two queries is simple enough to do as well. Thank you

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

Similar Threads

  1. Replies: 0
    Last Post: 08-02-2016, 02:21 AM
  2. Replies: 0
    Last Post: 07-03-2014, 12:15 PM
  3. Replies: 2
    Last Post: 12-20-2011, 07:33 AM
  4. Link report date with a table field
    By lizzywu in forum Reports
    Replies: 16
    Last Post: 10-27-2011, 09:51 AM
  5. query to update a date based on another date
    By tkendell in forum Access
    Replies: 3
    Last Post: 06-29-2011, 09: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