i have this situation something like the following
a control on a form gets income value from a table
i want anther control should calculate the tax for each income value for each record
the tax rate changes constantly like:
income --------------------tax
1000 ---------------------0.5%
2000 ----------------------1%
3000 ---------------------1.5%
and so on
i thought about using if function or select case
to select the tax rate appropriate to each income value
but that means i write a 200 line function
is there an easy way to get it done?
a control on a form gets income value from a table
i want anther control should calculate the tax for each income value for each record
the tax rate changes constantly like:
income --------------------tax
1000 ---------------------0.5%
2000 ----------------------1%
3000 ---------------------1.5%
and so on
i thought about using if function or select case
to select the tax rate appropriate to each income value
but that means i write a 200 line function
is there an easy way to get it done?
Last edited: