Summing Amount from Records with Yes checked off in Awarded field

G

Guest

I want the report to give me a sum of the proposal amounts for those records
that have been checked off as awarded (I have the awarded field as a Yes/No).
I have a text box already created that counts the number of awarded
contracts. What I'd like is another text box to give me the sum of the dollar
values of those records that have Yes checked for [Awarded].
 
R

Rick Brandt

Suliman said:
I want the report to give me a sum of the proposal amounts for those records
that have been checked off as awarded (I have the awarded field as a Yes/No).
I have a text box already created that counts the number of awarded
contracts. What I'd like is another text box to give me the sum of the dollar
values of those records that have Yes checked for [Awarded].

=Sum(IIf([awarded] = True, [AmountField], 0)
 
G

Guest

I want to sum the total of the open bids. Basically, if they haven't been
awarded and its not lost, it is open. I used the following but it is giving
me the total of all bids, not just the open ones. What is wrong with this
code?

=Sum(IIf(([Awarded]=False) & ([Lost]=False),[Proposal Amount],0))

Rick Brandt said:
Suliman said:
I want the report to give me a sum of the proposal amounts for those records
that have been checked off as awarded (I have the awarded field as a Yes/No).
I have a text box already created that counts the number of awarded
contracts. What I'd like is another text box to give me the sum of the dollar
values of those records that have Yes checked for [Awarded].

=Sum(IIf([awarded] = True, [AmountField], 0)
 
R

Rick Brandt

Suliman said:
I want to sum the total of the open bids. Basically, if they haven't been
awarded and its not lost, it is open. I used the following but it is giving
me the total of all bids, not just the open ones. What is wrong with this
code?

=Sum(IIf(([Awarded]=False) & ([Lost]=False),[Proposal Amount],0))

You need "And" instead of "&"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top