I've created an event attendance list from my table. I've selected only classmates with a Yes/No field which works fine. However, when I try to add spouses attending to this list, because some spouses are not coming, I've tried many combinations of criteria to show only those names of spouses who will attend and not those who are not selected to attend. I use a Yes/No field titled Spouse Attending and click to mark Yes. I cannot get anything I've come up with to work to select all classmates attending and yet only add those spouses' names who are marked as Spouse Attending. Instead, my list will show every spouse name I have in the table beside the classmate associated with this spouse. Please, can someone tell me what criteria to put in the design view or the SQL to get this to work correctly. I do not want spouses' names who do not plan to attend the event to come up in my attendance list. I've spent a month toying with this and am getting more confused by the minute. Please help! Here's the SQL I have for it right now.
SELECT IIf(IsNull([Last Name]),IIf(IsNull([First Name]),[Last Name]),IIf(IsNull([First Name]),[Last Name],[Last Name] & ", " & [First Name])) AS [File As], IIf(IsNull([Last Name]),IIf(IsNull([First Name]),[Last Name]),IIf(IsNull([First Name]),[Last Name],[Last Name] & ", " & [First Name])) AS [Contact Name], Contacts.[Attending Reunion], Contacts.[Last Name], Contacts.[First Name], Contacts.[Spouse Attending], Contacts.Spouse
FROM Contacts
WHERE (((Contacts.[Attending Reunion])<>0)) OR (((Contacts.[Spouse Attending]) Is Not Null) AND ((Contacts.Spouse)=IIf([Spouse Attending]<>0,[Spouse],"")))
ORDER BY IIf(IsNull([Last Name]),IIf(IsNull([First Name]),[Last Name]),IIf(IsNull([First Name]),[Last Name],[Last Name] & ", " & [First Name]));