Totals query adds ,* to SQL line 1

  • Thread starter Thread starter Ken Pierce
  • Start date Start date
K

Ken Pierce

I'm trying to do a totals query in design view, something
I've done a 1000 times and I keep getting < cannot group
on fields selected with '*' >. I have not selected fields
with the * yet when I look at the SQL view, at the end of
the first line is a < ,* >. Like below:

SELECT FuelTransect.PlotID, Count(FuelTransect.Transect)
AS CountOfTransect, *
FROM FuelTransect
GROUP BY FuelTransect.PlotID;


If I delete the , * after the word CountOfTransect, then
my query works. I've been doing queries like this for
years. All of a sudden this problem has cropped up. Any
suggestions?

Thanks
 
Brilliant. That was exactly it. I've been fighting with
this for hours and its something I do everyday. Thanks so
much for replying.

Ken
 

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

totals for multiple fields 1
Running Yearly Sum 1
Access Query problem 1
New Totals Query 2
Access parameterised queries upsizing to sql server 2
bitwise operator in SQL 3
Aggregate Function Error 0
Query SQL report 4

Back
Top