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

calculation possibly in expression builder

Status
Not open for further replies.

Matsta

Programmer
Apr 30, 2003
13
0
0
US


In access repots I want Field A to populate with Field b*Field c if field d = yes and Field e = yes. And If field D and Field E are not yes I would like to see zero dollars.
Example below:


Field B 50
Field C $1.00
Field D YES
Field E YES


Result I need:
Field A $50.00
 
Hi!

Try this:

=IIf(FieldD = "Yes" And FieldE = "Yes", FieldB*FieldC, 0)

This assumes that fieldD & E are text fields. Format the text box to display currency.

hth


Jeff Bridgham
bridgham@purdue.edu
 
try this in field A:


=iif([D] = "Yes" and [E] = "Yes", [A]=*[C],[A]=0)
 
Matsta
Will this work for Field A?

=IIf(([Field D]= Yes And [Field E]= Yes),[Field B]*[Field C],"$0.00")

Tom
 
Thank you so much that worked perfect!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top