D
dave
Using Michel Walsh's SQL concatenation method to create a temporary table, I
have the following two queries:
SELECT DISTINCT tblPayments.ClientID, IIF(False, "",Null) AS PaymentsConcat
INTO tblTempPayments
FROM tblPayments;
UPDATE tblTempPayments INNER JOIN tblPayments ON tblTempPayments.ClientID =
tblPayments.ClientID SET tblTempPayments.PaymentsConcat =
(tblTempPayments.PaymentsConcat+Chr(13)+Chr(10)) & (tblPayments.PayDate &
tblPayments.PayAmount & ("|" + tblPayments.Appeal) & ("|" +
tblPayments.Campaign));
Good so far. However, there is no particular order to the concatenation
process. I would like the concatenated payments to appear in descending date
order. Any suggestions?
I usually use Duane Hookom's concatenation function, but it runs too slowly
in this case.
have the following two queries:
SELECT DISTINCT tblPayments.ClientID, IIF(False, "",Null) AS PaymentsConcat
INTO tblTempPayments
FROM tblPayments;
UPDATE tblTempPayments INNER JOIN tblPayments ON tblTempPayments.ClientID =
tblPayments.ClientID SET tblTempPayments.PaymentsConcat =
(tblTempPayments.PaymentsConcat+Chr(13)+Chr(10)) & (tblPayments.PayDate &
tblPayments.PayAmount & ("|" + tblPayments.Appeal) & ("|" +
tblPayments.Campaign));
Good so far. However, there is no particular order to the concatenation
process. I would like the concatenated payments to appear in descending date
order. Any suggestions?
I usually use Duane Hookom's concatenation function, but it runs too slowly
in this case.