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!

Help with Iff statemet not working

Status
Not open for further replies.

idavis1900

Technical User
Dec 17, 2008
18
0
0
Can someone help me with my iff statement
=IIf([ExpenseCategoryID]=3,([ExpenseItemAmount]-[ded])*0.5,([ExpenseItemAmount]-[ded])*0.8)

My problem is when [ded] is blank.
Thanks for any help in advance
 
=([ExpenseItemAmount]-Nz([ded],0))*IIf([ExpenseCategoryID]=3,0.5,0.8)


Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
PH

Thank you that works much better. Can you tell me if there is a way to get the result to fill in a cell on a table

Irene
 
Sorry about that say the iff statement result is $50.00, is there away that 50.00 is filled in a table field name [ded]
 
I would like to save the value of a text field on the access form into a table. Can you tell me how to do this? I would believe it is some code.

 

You're talking about saving a calculated field, which is not recommended.

Randy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top