B
BillA
I am using Duane Hookom’s concatenate function and am having difficulty
including an ORDER BY clause in its select statement. Below is the SQL that
I've been beating my head against. Everything works as expected, however I
am trying to order the concatenated field in Descending order by 'IssueDate.'
Any suggestions?
SELECT T1.ProjectID, T1.RenewAmendID, T1.DateReceived,
Concatenate("Select IssueDate & ': ' & Issue FROM tbl_RenewAmendComments
WHERE RenewAmendID =" & [RenewAmendID],Chr(13) & Chr(10)) AS Issues
FROM tbl_RenewORAmend AS T1
WHERE (((T1.DateReceived)=(SELECT MAX(T2.DateReceived)
FROM tbl_RenewORAmend as T2
WHERE T2.ProjectID = T1.ProjectID)))
Thank you,
Bill
including an ORDER BY clause in its select statement. Below is the SQL that
I've been beating my head against. Everything works as expected, however I
am trying to order the concatenated field in Descending order by 'IssueDate.'
Any suggestions?
SELECT T1.ProjectID, T1.RenewAmendID, T1.DateReceived,
Concatenate("Select IssueDate & ': ' & Issue FROM tbl_RenewAmendComments
WHERE RenewAmendID =" & [RenewAmendID],Chr(13) & Chr(10)) AS Issues
FROM tbl_RenewORAmend AS T1
WHERE (((T1.DateReceived)=(SELECT MAX(T2.DateReceived)
FROM tbl_RenewORAmend as T2
WHERE T2.ProjectID = T1.ProjectID)))
Thank you,
Bill