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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding values based on status?

Status
Not open for further replies.

mechInferno

Technical User
Oct 24, 2005
24
CA
Hey I'm new to Access and been racking my brain. I am trying to pick a certain status then add up the values that go with it.
ex.

Status CustName Value
Job ---- $15,000
Dead ---- $30,000
Job ---- $150,000
Job ---- $10,000

Total Value based on Job status = 175,000

This should leave out the status' that are not "job"

There are a lot more rows in the DB, but this is an example. Anyone know how to work this?

 
In the SQL view pane of the query window:
SELECT Status, Sum(Value) As Total
FROM yourTable
WHERE Staus = 'Job'
GROUP BY Status

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Sorry I should have mentioned that I was trying to get the info while making a report. So far I have everything, but I need to report on how many bids have the job status and what the total value is of all the jobs per person.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top