Feb 5, 2008 #1 njitter Technical User Joined Sep 4, 2001 Messages 122 Location US I have the following linked tables: I would like to display only the latest record in the Detailed Info table together with the Guidelines information (record with the newest Entry Date) How to get this record? --- Happy Happy Joy Joy
I have the following linked tables: I would like to display only the latest record in the Detailed Info table together with the Guidelines information (record with the newest Entry Date) How to get this record? --- Happy Happy Joy Joy
Feb 5, 2008 #2 dhookom Programmer Joined Jun 24, 2003 Messages 22,561 Location US Join your tblGuidelines with this query rather than the detail info table. Code: SELECT * FROM tblDetailInfo WHERE [Guidance_ID] = (SELECT Guidance_ID FROM tblDetailInfo d WHERE d.ID = tblDetailInfo.ID ORDER BY Entry_Date DESC) Duane MS Access MVP Upvote 0 Downvote
Join your tblGuidelines with this query rather than the detail info table. Code: SELECT * FROM tblDetailInfo WHERE [Guidance_ID] = (SELECT Guidance_ID FROM tblDetailInfo d WHERE d.ID = tblDetailInfo.ID ORDER BY Entry_Date DESC) Duane MS Access MVP