Solved

syntax while using the expression builder within a query

Posted on 2011-03-23
2
380 Views
Last Modified: 2012-05-11
I have a report in Access 2007 that I am using a SUM function for a Field called Benefit.  The report includes a field called EXEMPT where the value is either 1 or 0  I am trying to create a SUM total of all the BENEFIT numbers where the EXEMPT is <> 1

I know this is not right, but here is the logic:

=FormatCurrency(Sum([BENEFIT])) where EXEMPT <> 1
0
Comment
Question by:Jason Jones
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 6

Accepted Solution

by:
HyperBPP earned 500 total points
ID: 35199954
Try this:

=FormatCurrency(Sum(IIF([EXEMPT]=0,[BENEFIT],0)))
0
 
LVL 1

Author Comment

by:Jason Jones
ID: 35199992
Perfect!  thanks!!
0

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question