Oh, previous week... I think I skipped that part.
here's the groupings stuff:
xjGroupings (Cross join):
Code:
SELECT GroupData.MemberID, GroupData_1.MemberID AS GroupedWithMember
FROM GroupData AS GroupData_1 INNER JOIN GroupData ON (GroupData.Group = GroupData_1.Group) AND (GroupData_1.EventDate = GroupData.EventDate);
then query and summarize that:
Code:
SELECT xjGroupings.MemberID, xjGroupings.GroupedWithMember, Count(xjGroupings.MemberID) AS CountOfMemberID
FROM xjGroupings
GROUP BY xjGroupings.MemberID, xjGroupings.GroupedWithMember
HAVING (((xjGroupings.MemberID)<>[xjGroupings].[GroupedWithMember]) AND ((Count(xjGroupings.MemberID))>1));