How to use an IF Statement in Access

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

Guest

Created a Combo Box
True add tax to the total – False don’t add tax
=IIf([Combo19]=True,[Tax]=0)
Having a lot of problems – please advice
I am open to any other solutions.
Tony
 
The If statement works with an IF TRUE condition and an IF FALSE condition.
So the syntax is IIf(this condition, Is True do this, Is False do this)

=IIf([Combo19]=True,[Tax]=thisvalue,[Tax]=thatvalue)

Does that clear up the problem?

Regards,
Nick.
 
If you change the logic around, you don't even need IIf as True = -1 & False
= 0
=-[Combo19]*[Tax]

Pieter

Biz Enhancer said:
The If statement works with an IF TRUE condition and an IF FALSE
condition.
So the syntax is IIf(this condition, Is True do this, Is False do this)

=IIf([Combo19]=True,[Tax]=thisvalue,[Tax]=thatvalue)

Does that clear up the problem?

Regards,
Nick.

Z said:
Created a Combo Box
True add tax to the total - False don't add tax
=IIf([Combo19]=True,[Tax]=0)
Having a lot of problems - please advice
I am open to any other solutions.
Tony
 

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