Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Only report last record of two linked tables

Status
Not open for further replies.

njitter

Technical User
Sep 4, 2001
122
US
I have the following linked tables:

guidancexw9.png


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
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top