Can a union query be used with 3 select queries? I have 3 queries that give me the results for Allocated, Completed, and Outstanding, and I want to bring them all together for a report.
Can a union query be used with 3 select queries? I have 3 queries that give me the results for Allocated, Completed, and Outstanding, and I want to bring them all together for a report.

This month, every Windows Secrets subscriber can download a one-chapter excerpt of Windows 7: The Missing Manual.Windows 7: The Missing Manual provides valuable information to help you overcome these difficulties in learning a new operating system. Subscribe today to download your free excerpt.
Easily done - just add each new query like it was a new section. The trick is to ensure you have the same number of output fields in each query and also make sure they have the same name in each section. I also found it best to get create the union query with 2 select queries first and get that working, then add the third query.
I agree but it sounds like you don't really need a union.
Instead you could just have a single query where the criteria is "Allocated or Completed or Outstanding"
I should add that I can easily imagine situations where I am wrong about this.
Usually you only need a union if the data is coming from different tables.
Regards
John
Thanks John, Felton. I think I've got that part sorted. I used a union to join two of the queries, then added that union to another query which seems to work. I can't see how a single query would work. I need to show the Allocated, Completed, Outstanding for each Actionee. There's another addition to the problem now. They want to know, how many of the Allocations, were issued in the last 7 days. I created another query, which shows just the people who have actions allocated to them this week, but doesn't show the figures for those who haven't.
UNION ALL is usually superior to UNION. UNION sorts the result and removes duplicate rows, while UNION ALL dcoesn't.
If you do want the effectes of UNION, then use UNION ALL between all but the last pair of queries, since you need to sort and remove duplicates only once.
Regards
John