Negative Response on the Query of a Boolean Field

nicolaasjan2005

Registered User.
Local time
Today, 17:07
Joined
Dec 29, 2004
Messages
25
I've created a query to count and display the number of "yes" check marks in a field.

There happens to be 20 of those marks but in the results it displays "-20".

Can anyone explain to me how to correct that? There is no default setting, neither yes nor no, in the field properties setting in the table.
 
Abs(Sum([YesNoField]))

or simply
-Sum([YesNoField])


If you build the Totals Query in query Design View, choose Expression in the Total: row.
.
 
Last edited:
The field label is "Casualties" and I did build the query in the design view.

After I select "expression" in the totals row, where do I enter the expression?
 
Up in the Field row:

MyFieldName: Abs(Sum([Casualties]))
 

Users who are viewing this thread

Back
Top Bottom