?
Solved

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

Posted on 2008-10-15
3
Medium Priority
?
393 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 1600 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

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

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

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained 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…
Suggested Courses

765 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