L
littleccguy
Just learning. Please be gentle.
I have two tables - ReportRequest (Main Table) and ReportHistory
(progress tracking). ReportRequest shows each record once (RequestID
is primary key). The ReportHistory tracks everytime the request has
changed status (HistoryID is primary key and RequestID is in table for
join purposes).
I need to edit my query so that every RequestID shows once with the
most current (highest) HistoryID.
Told you I was just learning.
Win XP and Access 2003
Here is the starting Query
SELECT ReportRequest.RequestId, ReportHistory.HistoryID,
ReportHistory.RequestID, ReportHistory.ReportStatus,
ReportHistory.ReportStatusChangeDate, ReportHistory.Notes
FROM ReportRequest INNER JOIN ReportHistory ON ReportRequest.RequestId
= ReportHistory.RequestID;
Thanks
I have two tables - ReportRequest (Main Table) and ReportHistory
(progress tracking). ReportRequest shows each record once (RequestID
is primary key). The ReportHistory tracks everytime the request has
changed status (HistoryID is primary key and RequestID is in table for
join purposes).
I need to edit my query so that every RequestID shows once with the
most current (highest) HistoryID.
Told you I was just learning.
Win XP and Access 2003
Here is the starting Query
SELECT ReportRequest.RequestId, ReportHistory.HistoryID,
ReportHistory.RequestID, ReportHistory.ReportStatus,
ReportHistory.ReportStatusChangeDate, ReportHistory.Notes
FROM ReportRequest INNER JOIN ReportHistory ON ReportRequest.RequestId
= ReportHistory.RequestID;
Thanks