Solved

Query is Too Complex Errror (Count Sections\Summary Report of Multi-Union Query)

Posted on 2013-02-06
3
466 Views
Last Modified: 2013-02-06
So hey guys, thanks again for all the help on the Multi-Union query that I got going now.

I need now to be able to create a Summary report (count all the sections) like this:

Category                            Counts
Active Provider Sites         ###
Active Distinct Providers  ###
Active Distinct Vendors    ###

etc.
etc.
etc.

When I create a query off of the Aliased table I created for the Multi-Union query it gives me this error:
#2Query is Too Complex Error
0
Comment
Question by:IEHP1
  • 3
3 Comments
 

Author Comment

by:IEHP1
ID: 38860651
So I made separate Count queries for each section and the Counts all match, but how would I get the Categories as one column and the Counts as the second column?
0
 

Accepted Solution

by:
IEHP1 earned 0 total points
ID: 38860702
OK so I plan to just keep Unioning off of this SQL structure I created:

SELECT ['Provider Network Snapshot Counts'].Category, ['Provider Network Snapshot Counts'].Counts
FROM (
SELECT  "Active Provider Sites" AS Category, Count([Qry_Provider Network Active Sites Snapshot].Count) AS Counts
FROM [Qry_Provider Network Active Sites Snapshot])
AS ['Provider Network Snapshot Counts']
ORDER BY Category;
0
 

Author Closing Comment

by:IEHP1
ID: 38860922
got it!!
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now