Hi Forum, Access 2010 accdb
Still not understanding Subquery and would appreciate any advice on the following.
RepaymentID is a unique record of a Repayment being made.
CommRepayRef can be matched to RepaymentID.
I am checking for any records in tblCommunication that match a record in tblMemberRepayments. This is to alert the operator that an email has been sent, by who and when.

Still not understanding Subquery and would appreciate any advice on the following.
RepaymentID is a unique record of a Repayment being made.
Code:
SELECT tblMemberRepayments.RepaymentID
FROM tblMemberRepayments;
CommRepayRef can be matched to RepaymentID.
Code:
SELECT tblCommunication.CommDate, tblCommunication.CommTime, tblCommunication.OperatorID, InStr(1,[CommNotes],"R") AS strLength, Left([CommNotes],([strLength]-1)) AS CommRepayRef
FROM tblCommunication
WHERE (((tblCommunication.CommNotes) Like "*RepayRef*"))
ORDER BY tblCommunication.CommDate DESC , tblCommunication.CommTime DESC;
I am checking for any records in tblCommunication that match a record in tblMemberRepayments. This is to alert the operator that an email has been sent, by who and when.