G
Grip
I've got a table of Organizations and a table of Memberships.
Memberships have an OrgID and one Org can be part of many
Memberships. Memberships have an expiration date.
I'm trying to build a list of Organizations that have at least one non-
expired Membership associated with it. I'd like each current Org to
show once in a list (for an unbound combo box).
I tried:
SELECT tblOrganizations.OrganizationID, tblOrganizations.Name,
[tblMemberships.Anniversary]>(Date()-60) AS [Current]
FROM tblOrganizations INNER JOIN tblMemberships ON
tblOrganizations.OrganizationID = tblMemberships.OrganizationID
WHERE ((([tblMemberships.Anniversary]>(Date()-60))=True))
ORDER BY tblOrganizations.Name;
But that gives multiple instances of each organization.
Any ideas?
Thanks,
G
Memberships have an OrgID and one Org can be part of many
Memberships. Memberships have an expiration date.
I'm trying to build a list of Organizations that have at least one non-
expired Membership associated with it. I'd like each current Org to
show once in a list (for an unbound combo box).
I tried:
SELECT tblOrganizations.OrganizationID, tblOrganizations.Name,
[tblMemberships.Anniversary]>(Date()-60) AS [Current]
FROM tblOrganizations INNER JOIN tblMemberships ON
tblOrganizations.OrganizationID = tblMemberships.OrganizationID
WHERE ((([tblMemberships.Anniversary]>(Date()-60))=True))
ORDER BY tblOrganizations.Name;
But that gives multiple instances of each organization.
Any ideas?
Thanks,
G