Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Yes/No field Sum

Status
Not open for further replies.

bethabernathy

Programmer
Jul 13, 2001
254
MX
Hi -

I am trying to Sum a Yes/No field in a report. The field is "numberofaccidents"

This is what I am using:

=Sum([Liftrelated])

The result I get is -3 and I need it to display as 3.
 
Would it be as simple as taking the result * -1 ??
 
Awesome!!! Yes it was as simple as that. Of course, I couldn't figure out the syntax. Thank you so much for your great help.

Beth
 
It may be easier for you to use the Absolute value function then *-1, I've always felt it's easier to understand when reviewing code:

=Abs(Sum([Liftrelated]))

HTH Joe Miller
joe.miller@flotech.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top