MS Access IIF

5 pts.
Tags:
IIF function
Microsoft Access
There is a task type column and a cost column. I need to pull out only the costs related to the task type steel. I was thinking an IIf ( [tast type] = steel, sum, 0 ) statement would work. Not making it happen. Any ideas? I actually want to pull out all of the different types of costs seperately and sum there totals. This will be put into a report.

Answer Wiki

Thanks. We'll let you know when a new response is added.

Hello Keg,
if I understood well your answer, your query shoule look like this:

<pre>
SELECT (SELECT SUM(COST) FROM MY TABLE WHERE [TASK TYPE]= ‘STEEL’) AS STEEL_COST FROM MY TABLE</pre>

Regards.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: