Formula Help

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

Guest

I have the following expression in my query:
Expr2: IIf([SCHW ADV NETWORK - New]="Yes",[TOTAL FEE]-0)

"SCHW ADV NETWORK - New" can now either be "Yes" or "Yes - New", how do I
add this?
 
Dear Jeanette:

I would prefer this approach:

Expr2: IIf([SCHW ADV NETWORK - New] IN ("Yes", "Yes -
New"),[TOTAL FEE]-0)

For one thing, if you ever need a third value or want to put the choices in
a table, this syntax is a good starting point. You can add to it readily.

Now, why are you subtracting 0? Or is it actually:

,[TOTAL FEE], 0)

Now that makes more sense.

Tom Ellison
Microsoft Access MVP
 
Dear Tom:

Thank you for your help. I was wondering if you could help me with
something else.

I have the following expression:

Expr1: IIf([SCHW ADV NETWORK]=Yes,[TOTAL FEE]*0.15)

But now I need to add that if [SCH ADV NETWORK=Yes New,[TOTAL FEE]-[SAN]

Can this be added to the expression I already have?

Thank you in advance for all of your help!

Jeanette

Tom Ellison said:
Dear Jeanette:

I would prefer this approach:

Expr2: IIf([SCHW ADV NETWORK - New] IN ("Yes", "Yes -
New"),[TOTAL FEE]-0)

For one thing, if you ever need a third value or want to put the choices in
a table, this syntax is a good starting point. You can add to it readily.

Now, why are you subtracting 0? Or is it actually:

,[TOTAL FEE], 0)

Now that makes more sense.

Tom Ellison
Microsoft Access MVP


Jeanette said:
I have the following expression in my query:
Expr2: IIf([SCHW ADV NETWORK - New]="Yes",[TOTAL FEE]-0)

"SCHW ADV NETWORK - New" can now either be "Yes" or "Yes - New", how do I
add this?
 

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

Similar Threads

Formula Help!!! 6
Help with a formula 2
Formula Help Needed 1
Access Query problem 1
IIf Statement Error 3
Multiple expressions in one query returning errors 2
IIf AND 6
Compare results of two expressions within query 1

Back
Top