Help with IIf

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

Need help on creating a IIf based on the criteria below

If "Option1" (boolean) is yes
let "Calculatedamount" = "Amount" * "? %"
If "Option1" (boolean) is no
let "Calculatedamount" = "Amount"

That is all

Thank you in advance.

Mattias
 
Mathias,

IIf(option1, [true condition],[false condition])

given that Option1 is boolean

Jeff Shanker
 
Hi Jeff

please can you help me with all the syntax for calculating the
"Calculatedamount"


Mattias
Jeff Shanker said:
Mathias,

IIf(option1, [true condition],[false condition])

given that Option1 is boolean

Jeff Shanker

Mattias said:
Hi

Need help on creating a IIf based on the criteria below

If "Option1" (boolean) is yes
let "Calculatedamount" = "Amount" * "? %"
If "Option1" (boolean) is no
let "Calculatedamount" = "Amount"

That is all

Thank you in advance.

Mattias
 
Mattias,

Are you looking for something like:
CalculatedAmount: IIf(option1, [Amount] * ??, [Amount])

Although I'm not too sure what you are using at the end of your calculation.

Jeff

Mattias said:
Hi Jeff

please can you help me with all the syntax for calculating the
"Calculatedamount"


Mattias
Jeff Shanker said:
Mathias,

IIf(option1, [true condition],[false condition])

given that Option1 is boolean

Jeff Shanker

Mattias said:
Hi

Need help on creating a IIf based on the criteria below

If "Option1" (boolean) is yes
let "Calculatedamount" = "Amount" * "? %"
If "Option1" (boolean) is no
let "Calculatedamount" = "Amount"

That is all

Thank you in advance.

Mattias
 
Hi again Jeff

Amount is a currency field, lets say it has the value 100
If Option1 is true I want to calculate a value (addon). If the % field has
the value 50%: 100 * 50%, the result of this calculation I want to add to
Amount fields value 100.
If Option1 is false I want the whole calculation to end with the value in
Amount: 100

Sorry I missed the addon part before.

Mattias

Jeff Shanker said:
Mattias,

Are you looking for something like:
CalculatedAmount: IIf(option1, [Amount] * ??, [Amount])

Although I'm not too sure what you are using at the end of your calculation.

Jeff

Mattias said:
Hi Jeff

please can you help me with all the syntax for calculating the
"Calculatedamount"


Mattias
Jeff Shanker said:
Mathias,

IIf(option1, [true condition],[false condition])

given that Option1 is boolean

Jeff Shanker

:

Hi

Need help on creating a IIf based on the criteria below

If "Option1" (boolean) is yes
let "Calculatedamount" = "Amount" * "? %"
If "Option1" (boolean) is no
let "Calculatedamount" = "Amount"

That is all

Thank you in advance.

Mattias
 
Mattias:

If Amount and % are 2 fields in the same record, then CalculatedField:
IIF(Option1, ([Amount]*[% field]) + [Amount], [Amount]. Otherwise, I'm not
sure what you are trying to do.

Jeff

Mattias said:
Hi again Jeff

Amount is a currency field, lets say it has the value 100
If Option1 is true I want to calculate a value (addon). If the % field has
the value 50%: 100 * 50%, the result of this calculation I want to add to
Amount fields value 100.
If Option1 is false I want the whole calculation to end with the value in
Amount: 100

Sorry I missed the addon part before.

Mattias

Jeff Shanker said:
Mattias,

Are you looking for something like:
CalculatedAmount: IIf(option1, [Amount] * ??, [Amount])

Although I'm not too sure what you are using at the end of your calculation.

Jeff

Mattias said:
Hi Jeff

please can you help me with all the syntax for calculating the
"Calculatedamount"


Mattias
:

Mathias,

IIf(option1, [true condition],[false condition])

given that Option1 is boolean

Jeff Shanker

:

Hi

Need help on creating a IIf based on the criteria below

If "Option1" (boolean) is yes
let "Calculatedamount" = "Amount" * "? %"
If "Option1" (boolean) is no
let "Calculatedamount" = "Amount"

That is all

Thank you in advance.

Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top