Solved

"Multi-level group by clause is not allowed in a subquery" error message

Posted on 2008-10-15
3
361 Views
Last Modified: 2013-11-28
I have a report (access 2000) which is based on a 'final' query. This 'final'  query is based on several queries. One row in my report shows as follows (each column comes from individual queries):

Employee ID    REG hrs  Overtime hrs   Vacation hrs

I want to have the totals for each column at the end of my report. I added a text box in the 'report footer' with the Sum (i.e. Sum([REG])), but when I run my report I get this message: "Multi-level group by clause is not allowed in a subquery" .

Please let me know what I am doing wrong..
0
Comment
Question by:cpasula
  • 2
3 Comments
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 400 total points
ID: 22727308
cpasula,

Then you might have to get your sum from the individual Source Tables (or Queries)

Something like this:

=DSum("[REG hrs]","[YourREGhrsTableOrQuery]")

Obviously, without seeing:
- Your data
- The way it is structured it.
- The Report's Design.
... it is impossible to know for sure.

So give this a try, and let me know the outcome.

JeffCoachman
0
 

Author Closing Comment

by:cpasula
ID: 31506367
JeffCoachman,

It works perfect!   Thank you
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 22733016
;-)
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you find yourself in this situation “I have used SELECT DISTINCT but I’m getting duplicates” then I'm sorry to say you are using the wrong SQL technique as it only does one thing which is: produces whole rows that are unique. If the results you a…
I'm trying, I really am. But I've seen so many wrong approaches involving date(time) boundaries I despair about my inability to explain it. I've seen quite a few recently that define a non-leap year as 364 days, or 366 days and the list goes on. …
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

791 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