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

Combine IF Statement

Status
Not open for further replies.

nike2000

Technical User
Apr 1, 2003
61
GB
Hi, I am looking to combine the following IF Statements, I need some help...

The statements are:

=IIf(Abs(([FOCUS PV]-[MAD PV])/([FOCUS PV])*100)>9,"Yes","No")

=IIf(Abs([FOCUS PV])-Abs([MAD PV])>30000,"Yes","No")

Thanks,
Nike
 
Does the 2nd one run independent of the first? Access help has good examples built in for nesting IIF, which it sounds like you're trying to do. Hope this helps.

Hope this helps!

Jim DeGeorge [wavey]
Developer
 
No, it wouldn't run independently.
The logic is the statement should display 'Yes' if the amount was greater than 30,000 or over 9% {I have provided this by dividing by 100).
If both are less they should display 'No'
Thanks,
Nike
 
No, it wouldn't run independently.
The logic is the statement should display 'Yes' if the amount was greater than 30,000 or over 9% {I have provided this by dividing by 100).
If both are less they should display 'No'
Thanks,
Nike
 
This should work:
Code:
=IIf(Abs(([FOCUS PV]-[MAD PV])/([FOCUS PV])*100) > 9 Or Abs([FOCUS PV])-Abs([MAD PV]) > 30000,"Yes","No")
Let me know if this helps.....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top