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

calculation for vatious vat rates not working 1

Status
Not open for further replies.

michellefettes

Technical User
Nov 3, 2006
2
0
0
GB
I am having a blonde moment

this is the formula i put in but it works if just have 2 poss results say 17.5% and 5% but if i put in a 3rd it will not work.

if {Products.VATCode}= 1 then 17.5 or if {Products.VATCode}= 2 then 5 else 0


help me please
 
Try this

if {Products.VATCode}= 1 then 17.5
else if {Products.VATCode}= 2 then 5
else 0

 
What a difference an else makes thanks a lot you are a star!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top