Re: writing formula for Access
- From: fredg <fgutkind@xxxxxxxxxxxxxxx>
- Date: Thu, 9 Feb 2006 20:13:32 -0800
On 9 Feb 2006 19:12:17 -0800, Levi wrote:
New at this. I am having trouble writing my formula (invalid syntex) to
get sum of one field if another field is ="credit"
=Sum([Total_Paid])IIf([MoneyRec]="Credit",0)))
And then I Need to another formula to subtract $700 from the sum for a
net total.
How would I do that?
Can someone help me?
=Sum(IIf([MoneyRec] = "Credit",[Total_Paid],0))
Besides the incorrect syntax you used, it is always good practice to
count your open parenthesis and subtract the close parenthesis in an
expression. If the result is not 0 you'll have a problem. Your
expression had 2 open and 4 close parenthesis. Not good. :-(
For the second question, try:
=Sum(IIf([MoneyRec] = "Credit",[Total_Paid],0)) - 700
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
.
- Follow-Ups:
- Re: writing formula for Access
- From: Levi
- Re: writing formula for Access
- References:
- writing formula for Access
- From: Levi
- writing formula for Access
- Prev by Date: writing formula for Access
- Next by Date: Re: made database. How do I access for mailing labels?
- Previous by thread: writing formula for Access
- Next by thread: Re: writing formula for Access
- Index(es):
Relevant Pages
|