I am struggling with this puzzle.
I have a table that is used to record individual telephone conversations. There are 3 important fields that I am interested in; ESPID, CallBackDate, CallRecordID.
I have used Max in a query to find the last dated record for each prospect which works
SELECT CallTbl.ESPID, Max(CallTbl.CallBackDate) AS MaxOfCallBackDate
FROM CallTbl
GROUP BY CallTbl.ESPID
HAVING (((Max(CallTbl.CallBackDate))<Date()));
The problem is, I need to capture the CallRecordID as well, but I cannot do that with this type of query... How do I find the last CallBackDate for each ESPID and show the associated CallRecordID?
Any assistance would be greatly appreciated.
I have a table that is used to record individual telephone conversations. There are 3 important fields that I am interested in; ESPID, CallBackDate, CallRecordID.
I have used Max in a query to find the last dated record for each prospect which works
SELECT CallTbl.ESPID, Max(CallTbl.CallBackDate) AS MaxOfCallBackDate
FROM CallTbl
GROUP BY CallTbl.ESPID
HAVING (((Max(CallTbl.CallBackDate))<Date()));
The problem is, I need to capture the CallRecordID as well, but I cannot do that with this type of query... How do I find the last CallBackDate for each ESPID and show the associated CallRecordID?
Any assistance would be greatly appreciated.