Sum([Fld]) <>0

bknight
BronzeLounger
Posts: 1412
Joined: 08 Jul 2016, 18:53

Sum([Fld]) <>0

Post by bknight »

I'm trying to design a query such that the sum of one field does not equal zero.

I keep getting a message cannot have aggregate function in a where clause. I have put the sum in the top of the field and in the criteria, but get the same message.
So where might it be placed so that the query runs?

User avatar
HansV
Administrator
Posts: 78588
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Sum([Fld]) <>0

Post by HansV »

Is your query a Totals query?

It is a Totals query if the Totals button in the Show/Hide group of the Design tab of the ribbon is highlighted:
S1432.png
You do not have the required permissions to view the files attached to this post.
Best wishes,
Hans

bknight
BronzeLounger
Posts: 1412
Joined: 08 Jul 2016, 18:53

Re: Sum([Fld]) <>0

Post by bknight »

Senior moment!
Thanks