S
Stephanie
Hi. I have a sql statement that brings back the volunteer opportunity
information as well as the associated coordinator. If a volunteer
opportunity needs a coordinator, I would expected not to see a name for the
coordinator. However, even if no coordinator is selected for the volunteer
opportunity, the query is returning the name of the first person associated
with the volunteer opportunity as the coordinator. The field I'd like to see
blank is the [Member Name] field. I'd appreciate any suggestions:
SELECT DISTINCT Volunteering.VolunteerName, Volunteering.VolunteerOngoing,
Volunteering.VolunteeringID, Event.Coordinator, Event.CoordinatorNeeded,
Nz([NickName],[FirstName]) & " " & [LastName] AS [Member Name]
FROM ((Volunteering INNER JOIN Event ON Volunteering.VolunteeringID =
Event.VolunteeringID) INNER JOIN Contacts ON Event.ContactID =
Contacts.ContactID) INNER JOIN (Organizations INNER JOIN EventSponsors ON
Organizations.OrganizationID = EventSponsors.OrganizationID) ON
Volunteering.VolunteeringID = EventSponsors.VolunteeringID
WHERE (((Volunteering.VolunteerOngoing)=Yes) AND ((Event.Coordinator)=Yes))
OR (((Volunteering.VolunteerOngoing)=Yes) AND
((Event.CoordinatorNeeded)=Yes));
information as well as the associated coordinator. If a volunteer
opportunity needs a coordinator, I would expected not to see a name for the
coordinator. However, even if no coordinator is selected for the volunteer
opportunity, the query is returning the name of the first person associated
with the volunteer opportunity as the coordinator. The field I'd like to see
blank is the [Member Name] field. I'd appreciate any suggestions:
SELECT DISTINCT Volunteering.VolunteerName, Volunteering.VolunteerOngoing,
Volunteering.VolunteeringID, Event.Coordinator, Event.CoordinatorNeeded,
Nz([NickName],[FirstName]) & " " & [LastName] AS [Member Name]
FROM ((Volunteering INNER JOIN Event ON Volunteering.VolunteeringID =
Event.VolunteeringID) INNER JOIN Contacts ON Event.ContactID =
Contacts.ContactID) INNER JOIN (Organizations INNER JOIN EventSponsors ON
Organizations.OrganizationID = EventSponsors.OrganizationID) ON
Volunteering.VolunteeringID = EventSponsors.VolunteeringID
WHERE (((Volunteering.VolunteerOngoing)=Yes) AND ((Event.Coordinator)=Yes))
OR (((Volunteering.VolunteerOngoing)=Yes) AND
((Event.CoordinatorNeeded)=Yes));