M
Mary
Is it possible to base a concatenation for address labels off a query? A
couple years ago you really helped me fix our address labels with
concatenation, and I have used it for many things but always based off the
same model. Now I need something a little different but I am running into a
roadblock.
Basing the concatenation off the query, I can get the address to show up
properly (one address per concatenation, instead of four times if four people
live at an address), but the names don't show up. There is no error message
or anything, the concatenation field is just blank.
I'd be grateful any help you can offer.
SELECT qryLPNonContactPersonsHomes.MailAddress1,
qryLPNonContactPersonsHomes.MailAddress2,
qryLPNonContactPersonsHomes.MailAddress3,
qryLPNonContactPersonsHomes.MailCity, qryLPNonContactPersonsHomes.MailState,
qryLPNonContactPersonsHomes.MailZip, qryLPNonContactPersonsHomes.Country,
Concatenate("SELECT [IndexName] FROM qryLPNonContactPersonsHomes WHERE
MailAddress1 & MailAddress2 & MailAddress3 & MailCity & MailState & MailZip
=""" & [MailAddress1] & [MailAddress2] & [MailAddress3] & [MailCity] &
[MailState] & [MailZip] & """",", ") AS Concat
FROM qryLPNonContactPersonsHomes
GROUP BY qryLPNonContactPersonsHomes.MailAddress1,
qryLPNonContactPersonsHomes.MailAddress2,
qryLPNonContactPersonsHomes.MailAddress3,
qryLPNonContactPersonsHomes.MailCity, qryLPNonContactPersonsHomes.MailState,
qryLPNonContactPersonsHomes.MailZip, qryLPNonContactPersonsHomes.Country,
Concatenate("SELECT [IndexName] FROM qryLPNonContactPersonsHomes WHERE
MailAddress1 & MailAddress2 & MailAddress3 & MailCity & MailState & MailZip
=""" & [MailAddress1] & [MailAddress2] & [MailAddress3] & [MailCity] &
[MailState] & [MailZip] & """",", ");
couple years ago you really helped me fix our address labels with
concatenation, and I have used it for many things but always based off the
same model. Now I need something a little different but I am running into a
roadblock.
Basing the concatenation off the query, I can get the address to show up
properly (one address per concatenation, instead of four times if four people
live at an address), but the names don't show up. There is no error message
or anything, the concatenation field is just blank.
I'd be grateful any help you can offer.
SELECT qryLPNonContactPersonsHomes.MailAddress1,
qryLPNonContactPersonsHomes.MailAddress2,
qryLPNonContactPersonsHomes.MailAddress3,
qryLPNonContactPersonsHomes.MailCity, qryLPNonContactPersonsHomes.MailState,
qryLPNonContactPersonsHomes.MailZip, qryLPNonContactPersonsHomes.Country,
Concatenate("SELECT [IndexName] FROM qryLPNonContactPersonsHomes WHERE
MailAddress1 & MailAddress2 & MailAddress3 & MailCity & MailState & MailZip
=""" & [MailAddress1] & [MailAddress2] & [MailAddress3] & [MailCity] &
[MailState] & [MailZip] & """",", ") AS Concat
FROM qryLPNonContactPersonsHomes
GROUP BY qryLPNonContactPersonsHomes.MailAddress1,
qryLPNonContactPersonsHomes.MailAddress2,
qryLPNonContactPersonsHomes.MailAddress3,
qryLPNonContactPersonsHomes.MailCity, qryLPNonContactPersonsHomes.MailState,
qryLPNonContactPersonsHomes.MailZip, qryLPNonContactPersonsHomes.Country,
Concatenate("SELECT [IndexName] FROM qryLPNonContactPersonsHomes WHERE
MailAddress1 & MailAddress2 & MailAddress3 & MailCity & MailState & MailZip
=""" & [MailAddress1] & [MailAddress2] & [MailAddress3] & [MailCity] &
[MailState] & [MailZip] & """",", ");