Just a comment....
John, you shouldn't use special characters in object names. You have a dash in the field for the email address: "E-Mail".
Better is "EMail" or "E_Mail" (if you must separate the letters).
Should never use spaces in object names; field names, query, form, report or module names.
Your table names are very long, even without spaces. I aliased the names in the query:
Code:
PARAMETERS [Start Date] DateTime, [End Date] DateTime;
SELECT IDT.[Full Name], IGAT.[Gift Date], IGAT.[Gift Amount],IDT.ConfCode, IDT.[Street Address], IDT.City, IDT.State, IDT.ZIP, IDT.Telephone, IDT.[E-Mail]
FROM [Individual Donor Table] AS IDT INNER JOIN [Individual Gift Amount Table] AS IGAT ON IDT.[Full Name] = IGAT.[Full Name]
GROUP BY IDT.[Full Name], IGAT.[Gift Date], IGAT.[Gift Amount], IDT.ConfCode, IDT.[Street Address], IDT.City, IDT.State, IDT.ZIP, IDT.Telephone, IDT.[E-Mail]
HAVING (((IGAT.[Gift Date])>=[Start Date] And (IGAT.[Gift Date])<=[End Date]) AND ((IDT.ConfCode)="D"))
ORDER BY IDT.[Full Name], IGAT.[Gift Date]
UNION SELECT ODT.[Org Name], OGAT.GiftDte, OGAT.[Gift Amount], ODT.ConfCode, ODT.[Street Address], ODT.City, ODT.State, ODT.ZIP, ODT.Telephone, ODT.[E-Mail]
FROM [Organization Donor Table] AS ODT INNER JOIN [Organization Gift Amount Table] AS OGAT ON ODT.[Org Name] = OGAT.[Organ Name]
WHERE (((OGAT.GiftDte)>=[Start Date] And (OGAT.GiftDte)<=[End Date]));
This is how to alias names:
Code:
FROM [Individual Donor Table] AS IDT INNER JOIN [Individual Gift Amount Table] AS IGAT ON IDT.[Full Name] = IGAT.[Full Name]
FROM [Organization Donor Table] AS ODT INNER JOIN [Organization Gift Amount Table] AS OGAT ON ODT.[Org Name] = OGAT.[Organ Name]
Good luck with your project.....