i am working on a tax calculation program. I used many calculated fields on the form. But on the final field i dont have an idea how and where to write the code. Actually i want to use multi if statement in the manner below:-
if sex=Male
and income>110000 and income<=150000
then tax=(income-110000) *10
elseif if sex=male
and income>150000 and income<=250000
then tax=(income-150000)*20+4000
elseif sex = male
and income>250000
then tax(income-250000)*30+24000
Please tell what will be the proper syntax for this problem in access and where to write this code. in other fields i write code in control source fields. Please help me, Thanks in advance.
if sex=Male
and income>110000 and income<=150000
then tax=(income-110000) *10
elseif if sex=male
and income>150000 and income<=250000
then tax=(income-150000)*20+4000
elseif sex = male
and income>250000
then tax(income-250000)*30+24000
Please tell what will be the proper syntax for this problem in access and where to write this code. in other fields i write code in control source fields. Please help me, Thanks in advance.