[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
Solved

# Access Formula Gone Wrong!

Posted on 2011-03-08
Medium Priority
299 Views
Hello Everyone,
We have a Query that is used to calculate the employees profit:
Profit: (([GPACT_AMT]+[GPBONUS_AMT]+[GPSUBSID_AMT]+[GPSUB2_AMT]+[GPSUB3_AMT]+[GPFEAT_TOT]+[GPSALES_AMT])-[GPCOST])

Now this query work fine most of the time except when there is a return and so we could get numbers like this:

Profit: (([-290]+[0]+[0]+[0]+[0]+[-7]+[-299.95])-[404.95])
The Number should be -\$192 instead it calculates out as -\$1001.9

Can anyone elaborate a better way to present this formula so it works correctly?

Thanks Again!
Jester

0
Question by:smart2009
[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
• 2

LVL 120

Accepted Solution

Rey Obrero (Capricorn1) earned 1000 total points
ID: 35075206
there is nothing wrong with the formula.
it gives the correct total

explain why you think otherwise
0

LVL 19

Assisted Solution

Eric Sherman earned 1000 total points
ID: 35075336
I agree ... if it's a return wouldn't you want to offset (subtract) from your regular sales as shown in your example???

ET
0

Author Closing Comment

ID: 35076109
Thanks Again!
0

Author Comment

ID: 35076118
Sorry it doesn't appear to have added my comment. The issue was that GPCOST was supposed to always be a positive number and the Point of Sale System had a glitch and had placed negative numbers for that field. It has been resolved. Thanks again!

Jester
0

## Featured Post

Question has a verified solution.

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

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…
Code that checks the QuickBooks schema table for non-updateable fields and then disables those controls on a form so users don't try to update them.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
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…
###### Suggested Courses
Course of the Month14 days, 1 hour left to enroll