473,378 Members | 1,417 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

multi level group by clause is not allowed ms access

10
I have a query as follows in MS Access

Expand|Select|Wrap|Line Numbers
  1. SELECT ledger.ID, ledger.[Expense:(type)], 
  2.     ledger.[Fund allotment], ledger.Amount, 
  3.     (Select Amount From ledger 
  4.         Where ledger.ID = (Select Min(ID) From Ledger)) - 
  5.         Nz((Select Sum(T.Amount) From ledger As T 
  6.             Where T.ID > (Select Min(ID) From Ledger) And 
  7.             T.ID <= ledger.ID),0) AS Balance 
  8. FROM ledger;
I've put this into a report and now when trying to view the report it displays an alert "Multi-level GROUP BY clause is not allowed in subquery"

What I dont get is I dont even have any GROUP BY clauses in the query so why is it returning this error?
Jun 19 '18 #1
3 2409
twinnyfo
3,653 Expert Mod 2GB
junne,

Have you tried running the query on its own, apart from the Report? Does it produce your expected/desired results? This would be the first step in trouble shooting.

Hope this hepps.
Jun 19 '18 #2
junne
10
ah i see it works thanks a lot :)
Jun 20 '18 #3
NeoPa
32,556 Expert Mod 16PB
Using any of the Aggregate functions (Min(), Max(), Avg(), etc.) in SQL automatically causes it to be treated as a GROUP BY query. Essentially you're GROUPing the dataset as a whole.
Jun 21 '18 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: eliffman | last post by:
I get the following error when trying to run a report: Multi-level GROUP BY clause is not allowed in a subquery. (Error 3612) The report's recordsource is a query based on a single table....
3
by: syounger | last post by:
Hi. I have a report in Access 2000 that is based on selection made from a series of interdependent list boxes. The boxes I have right now are Source, Table, Column, Date. The user chooses Source...
1
by: Tim Marshall | last post by:
A2003. I am getting this error message when I try to set a report's recordsource to an SQL statement or a saved querydef that uses sub-queries. I've debug.printed the SQL, and run it as a stand...
4
by: snowweb | last post by:
I am trying to implement a CSS hierarchical unfolding menu on a site. The thing is, it needs to be dynamically populated from the results of a database query. I previously had the menu working but...
5
by: Red | last post by:
Hi, Can someone give me some pointers on how to approach creating multi level category navigation for a website? Take ebay for example. No matter where you are, you have a navigation bar...
1
by: barb | last post by:
We are trying to build a multi level BOM report. The problem we are having is in designing the report so that the spacing for each level does not show up on the report when there is no information....
0
by: bluefalcon904 via AccessMonster.com | last post by:
Hi... Can someone please help me? Im trying to run a report using the query below... SELECT & "_" & AS , dbo_SDB_ABM0270.KYKMEIKT, dbo_viewPOMS_RegRep., dbo_viewPOMS_RegRep.Account,...
6
by: python | last post by:
I need to generate multi-level incrementing labels for an outline/hierarchy where the string for each level of a label is based on an incrementing sequence like 1, 2, 3 or A, B, C, or even I, II,...
6
Denburt
by: Denburt | last post by:
It has been a long time since I have run into this issue but using a subquery in a Query that is used in a sub-report that uses a group header or footer returns the title (from this thread) as a...
5
Seth Schrock
by: Seth Schrock | last post by:
I have an incredibly complex query that works if I run just the query, but when I try to open a report based on the query, I get an error message that says "Multi-level GROUP BY clause is not allowed...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.