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

Multiple IIF Statements 1

Status
Not open for further replies.

dodge20

MIS
Jan 15, 2003
1,048
US
CRXI

Is it possible to have multiple IIF Statements such as:

Code:
iif ({UsrUsers.LoginName}="315" and {#RTotalDefinitionGross} >= 1589.68, {#RTotalDefinitionGross} * .015, {#RTotalDefinitionGross} *.01) 
iif ({UsrUsers.LoginName}="335" and {#RTotalDefinitionGross} >= 1319.83,  {#RTotalDefinitionGross} * .015, {#RTotalDefinitionGross} *.01)



Dodge20
 
Never tried why not just use an if . then .else

if {UsrUsers.LoginName}="315" then
(if {#RTotalDefinitionGross} >= 1589.68
then {#RTotalDefinitionGross} * .015
else {#RTotalDefinitionGross} *.01)
Else
if {UsrUsers.LoginName}="335" then
(if {#RTotalDefinitionGross} >= 1319.83 then {#RTotalDefinitionGross} * .015 else {#RTotalDefinitionGross} *.01)

Ian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top