E
Em D
I am trying to get a list of entries that are between two dates that I input
on a form. However, the date in the query that it is looking at is a
calculated date "Expr 1: Sum(tblMemos!MemoDate+tblMemos!FollowUpDays)". I
want to keep this expression to tell me the date for that entry but I want to
only show dates within a certain range.
Below is the SQL:
SELECT tblAssociateList.FileNumber, tblAssociateList.AssociateLast,
tblAssociateList.AssociateFirst, tblMemos.MainSubject, tblMemos.SubType,
tblMemos.MemoDate, tblMemos.FollowUpDays, tblMemos.FollowUpDate,
tblMemos.ReceivedDate, Sum(tblMemos!MemoDate+tblMemos!FollowUpDays) AS [Expr
1]
FROM tblAssociateList INNER JOIN tblMemos ON tblAssociateList.FileNumber =
tblMemos.FileNumber
WHERE ((([tblMemos]![MemoDate]+[tblMemos]![FollowUpDays]) Between
[Forms]![frmPopUp_Memos]![Date 1] And [Forms]![frmPopUp_Memos]![Date 2]))
GROUP BY tblAssociateList.FileNumber, tblAssociateList.AssociateLast,
tblAssociateList.AssociateFirst, tblMemos.MainSubject, tblMemos.SubType,
tblMemos.MemoDate, tblMemos.FollowUpDays, tblMemos.FollowUpDate,
tblMemos.ReceivedDate
HAVING (((tblMemos.MainSubject) Is Not Null) AND
((tblMemos.ReceivedDate)>Sum([tblMemos]![MemoDate]+[tblMemos]![FollowUpDays])
And (tblMemos.ReceivedDate) Is Not Null));
on a form. However, the date in the query that it is looking at is a
calculated date "Expr 1: Sum(tblMemos!MemoDate+tblMemos!FollowUpDays)". I
want to keep this expression to tell me the date for that entry but I want to
only show dates within a certain range.
Below is the SQL:
SELECT tblAssociateList.FileNumber, tblAssociateList.AssociateLast,
tblAssociateList.AssociateFirst, tblMemos.MainSubject, tblMemos.SubType,
tblMemos.MemoDate, tblMemos.FollowUpDays, tblMemos.FollowUpDate,
tblMemos.ReceivedDate, Sum(tblMemos!MemoDate+tblMemos!FollowUpDays) AS [Expr
1]
FROM tblAssociateList INNER JOIN tblMemos ON tblAssociateList.FileNumber =
tblMemos.FileNumber
WHERE ((([tblMemos]![MemoDate]+[tblMemos]![FollowUpDays]) Between
[Forms]![frmPopUp_Memos]![Date 1] And [Forms]![frmPopUp_Memos]![Date 2]))
GROUP BY tblAssociateList.FileNumber, tblAssociateList.AssociateLast,
tblAssociateList.AssociateFirst, tblMemos.MainSubject, tblMemos.SubType,
tblMemos.MemoDate, tblMemos.FollowUpDays, tblMemos.FollowUpDate,
tblMemos.ReceivedDate
HAVING (((tblMemos.MainSubject) Is Not Null) AND
((tblMemos.ReceivedDate)>Sum([tblMemos]![MemoDate]+[tblMemos]![FollowUpDays])
And (tblMemos.ReceivedDate) Is Not Null));