S
Stephanie
Hi. I have a yes/no field for Coordinator. Each program has one
coordinator. I'm trying to figure out a query to find programs that have no
coordinator, but because I used yes/no, I can't seem to get what I want. If
I use "no" in the query, I get EVERYONE who isn't a coordinator (even if
there is a coordinator for the program).
Any suggestions? I've posted the queries I'm working from (I tried to trim
them, but ended up posting the whole thing so I don't cut anything important):
Here's the subquery:
SELECT Event.EventVolunteerID, Organizations.OrganizationName,
Volunteering.VolunteerName, Organizations.OrganizationState,
Frequency.Frequency, Volunteering.VolunteerREAD, Frequency.FrequencyFactor,
Volunteering.VolunteerEndDate, Volunteering.VolunteerStartDate
FROM (Frequency INNER JOIN (Volunteering INNER JOIN Event ON
Volunteering.VolunteeringID = Event.VolunteeringID) ON Frequency.FrequencyID
= Volunteering.FrequencyID) INNER JOIN (Organizations INNER JOIN
EventSponsors ON Organizations.OrganizationID = EventSponsors.OrganizationID)
ON Volunteering.VolunteeringID = EventSponsors.VolunteeringID
WHERE (((Volunteering.VolunteerOngoing)=Yes))
ORDER BY Volunteering.VolunteerDay DESC;
Here's the query:
SELECT Event.ContactID, Nz([NickName],[FirstName]) & " " & [LastName] AS
[Member Name], Contacts.LastName, Animals.AnimalName, Event.Past,
Event.Coordinator, [Program Opportunities subqry].OrganizationName, [Program
Opportunities subqry].VolunteerName, [Program Opportunities
subqry].Frequency, [Program Opportunities subqry].OrganizationState, [Program
Opportunities subqry].VolunteerREAD, [Program Opportunities
subqry].FrequencyFactor
FROM [Program Opportunities subqry] INNER JOIN ((Event LEFT JOIN Animals ON
Event.AnimalsID = Animals.AnimalsID) INNER JOIN Contacts ON Event.ContactID =
Contacts.ContactID) ON [Program Opportunities subqry].EventVolunteerID =
Event.EventVolunteerID
ORDER BY Contacts.LastName, Contacts.LastName;
I'd appreciate any suggestions on how I can end up with OrganizationName,
Volunteering.VolunteerName with no one in them as a Coordinator.
coordinator. I'm trying to figure out a query to find programs that have no
coordinator, but because I used yes/no, I can't seem to get what I want. If
I use "no" in the query, I get EVERYONE who isn't a coordinator (even if
there is a coordinator for the program).
Any suggestions? I've posted the queries I'm working from (I tried to trim
them, but ended up posting the whole thing so I don't cut anything important):
Here's the subquery:
SELECT Event.EventVolunteerID, Organizations.OrganizationName,
Volunteering.VolunteerName, Organizations.OrganizationState,
Frequency.Frequency, Volunteering.VolunteerREAD, Frequency.FrequencyFactor,
Volunteering.VolunteerEndDate, Volunteering.VolunteerStartDate
FROM (Frequency INNER JOIN (Volunteering INNER JOIN Event ON
Volunteering.VolunteeringID = Event.VolunteeringID) ON Frequency.FrequencyID
= Volunteering.FrequencyID) INNER JOIN (Organizations INNER JOIN
EventSponsors ON Organizations.OrganizationID = EventSponsors.OrganizationID)
ON Volunteering.VolunteeringID = EventSponsors.VolunteeringID
WHERE (((Volunteering.VolunteerOngoing)=Yes))
ORDER BY Volunteering.VolunteerDay DESC;
Here's the query:
SELECT Event.ContactID, Nz([NickName],[FirstName]) & " " & [LastName] AS
[Member Name], Contacts.LastName, Animals.AnimalName, Event.Past,
Event.Coordinator, [Program Opportunities subqry].OrganizationName, [Program
Opportunities subqry].VolunteerName, [Program Opportunities
subqry].Frequency, [Program Opportunities subqry].OrganizationState, [Program
Opportunities subqry].VolunteerREAD, [Program Opportunities
subqry].FrequencyFactor
FROM [Program Opportunities subqry] INNER JOIN ((Event LEFT JOIN Animals ON
Event.AnimalsID = Animals.AnimalsID) INNER JOIN Contacts ON Event.ContactID =
Contacts.ContactID) ON [Program Opportunities subqry].EventVolunteerID =
Event.EventVolunteerID
ORDER BY Contacts.LastName, Contacts.LastName;
I'd appreciate any suggestions on how I can end up with OrganizationName,
Volunteering.VolunteerName with no one in them as a Coordinator.