H
HLCruz via AccessMonster.com
SELECT tblDesignators.ProfileCode, tblContacts.ContactID, tblContacts.
MailingID, tblContacts.FirstName, tblContacts.LastName, [FirstName] & " " &
[LastName] AS Name, tblContacts.Email
FROM tblDesignators LEFT JOIN tblContacts ON tblDesignators.ContactID =
tblContacts.ContactID
WHERE (((tblDesignators.ProfileCode)="ShiningStar"));
I have a client management database that uses one table (tblMailingList) for
all household addresses and another table (tblContacts) for all the household
members and their personal information. They each have unique primary key
fields, MailingID and ContactID, respectively.
The above query selects Contact records that are members of a specific group.
In many cases there are mulitple family members that are members.
I'd like to use a Totals Query to group this query by household (MailingID),
but I'd also like to be able to see the all the names of the group members ...
is there a way, in SQL or VBA that I could string those multiple family
members together in another field? In my mind I'm thinking the query results
would be something like:
MailingID ShiningStars
12345 Joe & Nancy
Thank you,
Heather
MailingID, tblContacts.FirstName, tblContacts.LastName, [FirstName] & " " &
[LastName] AS Name, tblContacts.Email
FROM tblDesignators LEFT JOIN tblContacts ON tblDesignators.ContactID =
tblContacts.ContactID
WHERE (((tblDesignators.ProfileCode)="ShiningStar"));
I have a client management database that uses one table (tblMailingList) for
all household addresses and another table (tblContacts) for all the household
members and their personal information. They each have unique primary key
fields, MailingID and ContactID, respectively.
The above query selects Contact records that are members of a specific group.
In many cases there are mulitple family members that are members.
I'd like to use a Totals Query to group this query by household (MailingID),
but I'd also like to be able to see the all the names of the group members ...
is there a way, in SQL or VBA that I could string those multiple family
members together in another field? In my mind I'm thinking the query results
would be something like:
MailingID ShiningStars
12345 Joe & Nancy
Thank you,
Heather