Select query Total Grouping

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Please what am I doing wrong? Access gives me the error message, "Cannot
group on fields selected with'*'". I am attemping to do some exercises in
"Access Inside Out" using the sample database Northwind. The query is select
with the Total row viewing.
 
What is the actual SQL you're trying to run?

(If you don't know what I'm talking about, while you've got the query open
in Design mode, select View | SQL View from the menu. Select all of the text
that appears in the Query definition, and paste it into your reply)
 
SELECT Orders.EmployeeID,
Sum(([UnitPrice]*[Quantity])-([UnitPrice]*[Quantity]*[Discount])) AS
TotalSales, *
FROM Orders INNER JOIN [Order Details] ON Orders.OrderID = [Order
Details].OrderID
GROUP BY Orders.EmployeeID;
 
Thank you Roger:
I tried the Properties/Output All Fields suggesting and it worked fine.
However, removing a "*" from the SQL view would not.

Thank you again,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Access Query problem 1
Aggregate Function Error 0
Add autonumber to a large table? 0
Group totals 6
Help with Query 2
New Totals Query 2
Union and group, then count 1
Access Group by precinct, calculate percentage of older voters 0

Back
Top