I am new to Union Queries and struggling with how to format one that combines about 6 different queries with duplicate field names and contains parameters. I am hoping someone can assist so I can learn better how to do these. Below are are the SQL's for 2 of the 6 queries so you can see how they are formatted. I have looked at several sources and cannot seem to get anything to work.
SELECT Count([BC Facility Closed].[Closed Dt]) AS [CountOfClosed Dt], [BC Facility Closed].[Closed Dt]
FROM [BC Facility Closed]
WHERE ((([Closed Dt]-[Recd Dt])>=0 And ([Closed Dt]-[Recd Dt])<=7))
GROUP BY [BC Facility Closed].[Closed Dt];
SELECT Count([BC Facility Closed].[Closed Dt]) AS [CountOfClosed Dt], [BC Facility Closed].[Closed Dt]
FROM [BC Facility Closed]
WHERE ((([Closed Dt]-[Recd Dt])>=8 And ([Closed Dt]-[Recd Dt])<=21))
GROUP BY [BC Facility Closed].[Closed Dt];
SELECT Count([BC Facility Closed].[Closed Dt]) AS [CountOfClosed Dt], [BC Facility Closed].[Closed Dt]
FROM [BC Facility Closed]
WHERE ((([Closed Dt]-[Recd Dt])>=0 And ([Closed Dt]-[Recd Dt])<=7))
GROUP BY [BC Facility Closed].[Closed Dt];
SELECT Count([BC Facility Closed].[Closed Dt]) AS [CountOfClosed Dt], [BC Facility Closed].[Closed Dt]
FROM [BC Facility Closed]
WHERE ((([Closed Dt]-[Recd Dt])>=8 And ([Closed Dt]-[Recd Dt])<=21))
GROUP BY [BC Facility Closed].[Closed Dt];